I’ve made an application using CodeIgniter, and I tried to use the apache mod_rewrite rules as listed on the CodeIgniter User Guide as follows:
RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L]
The problem is that I have this app in a folder abc/, but when I type mysite/abc/something (which should point to mysite/abc/index.php/something) I get redirected to mysite/index.php/something.
What changes should I make to the .htaccess file to make it work properly?
Try using a relative path in the substitution: