Friendly URL Code igniter does not work

0

My htaccess inside the application folder looks like this:

RewriteEngine on
RewriteCond $1 !^(index.php|images|robots.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Am I putting in the right folder? Code correct? Where am I going wrong?

I await ..

    
asked by anonymous 14.04.2016 / 19:46

1 answer

0

the .htacces should be in the folder where the site is, if you have only 1 site in your hosting use in the folder public_html or www

Try to leave it like this:

RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index.php|images|robots.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
    
14.04.2016 / 22:42