Friendly URL Code Igniter does not work

Asked

Viewed 525 times

0

my htaccess inside the application folder is so:

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

Am I putting it in the right folder? Correct code? where am I missing?

waiting..

  • I believe you have to put in the same folder as index.php, outside the application. You should even have a . htaccess there

  • Good afternoon Khaos, then I already have an htaccess just where you indicated, and it has the same code I put above.. is this code not working?

1 answer

0


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

Try to leave it like that:

RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index.php|images|robots.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
  • Thank you very much Raphael, solved my problem! I learned how Rewrite works ! Thank you!!!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.