editing .htaccess file


editing .htaccess file



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?




htaccess rule is passing innecesary variable

1:



.htaccess rewrite with REST style URL 500 error
Try using a relative path in the substitution:.
advance url rewriting [closed]
RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ index.php/$1 [L] 


.htaccess for addon domain


Include file (header) using htaccess

2:



.htaccess RewriteRule Problem
RewriteCond $1 !(index\.php|^images|^robots\.txt) RewriteRule (.*) index.php/$1 [L,NS] 


.htaccess mod-rewrite question


76 out of 100 based on 66 user ratings 1216 reviews