Questions tagged as 'htaccess'

0
answers

.htaccess and CODEIGNITER

I have the following .htaccess on my site: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.meusite.br/$1 [R,L] NOTE: It works perfectly across my site. And I have the following .htaccess in th...
asked by 22.10.2018 / 21:16
0
answers

NGINX - ERR_TOO_MANY_REDIRECTS when rewriting htaccess rules

I'm trying to convert some htaccess rules to NGINX and I'm getting ERR_TOO_MANY_REDIRECTS. The htaccess code is link Options +FollowSymLinks -MultiViews # Secuirty Control <FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|tpl)$">...
asked by 27.10.2018 / 22:19
2
answers

Use .htacess to change site to another language

Good afternoon, I have a site that needs to have the English version, so I thought I had a folder / eng / and just change that url, but the site in Portuguese already uses htacess to have a friendly url that inside the normal root pull the pa...
asked by 05.11.2018 / 18:13
0
answers

Friendly URL without www and with 301 redirect

I'm using the following code in my .htaccess to make a system of URLs friendly to a PHP site. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^...
asked by 01.10.2018 / 15:10
0
answers

mod_rewrite in htaccess redirecting to index when trying to force https and www

Greetings, I'm trying to force rewriting URLs that do not use the HTTPS protocol and do not have the www through mod_rewriter in htacess. I'm using codeigniter, so I take the index.php. <IfModule mod_rewrite.c> RewriteEngine On...
asked by 25.09.2018 / 22:36
0
answers

url friendly with .htaccess or slug

I'm working with get and retrieving by id, I tried to use the title but unfortunately it does not work, so I adapted the url to have the id and title, so: /postagem.php?id=69&post-para-front-end I was trying to do it by .htaccess but it...
asked by 24.09.2018 / 00:20
0
answers

css disappeared in .htaccess

I have a problem with assets that do not load. I'm using local server so I can not put the absolute path in CSS . The link was like this:    post.php? id = 79 And now it's like this    post / 79 <IfModule mod_rewrite.c>...
asked by 25.09.2018 / 13:32
0
answers

How to not add end slash to list urls in codeigniter

Greetings, I'm trying to find a way to not add end slashes in urls to the listing, as in the case: virtualhost/blog/ -> virtualhost/blog I tried setting up a route for the index of my controller: $route['blog'] = 'blog/index'; Bu...
asked by 27.09.2018 / 13:50
1
answer

Change URL in localhost (.htaccess)

I would like to change the URL of my local server. I use XAMPP. I believe you need to create or change .htaccess . In fact, I have already created the file and placed it in the root of the localhost, that is, in the htdocs directory. I...
asked by 19.09.2018 / 01:56
1
answer

How to rewrite a URL

Good afternoon, guys. Could you help me with my doubt? I wanted to rewrite a URL. For example: <a href="#Contato">Contato</a> that points to a DIV ID Contact, however, the URL is: https://site.com/index.php#Contato and w...
asked by 19.09.2018 / 19:14