Abhijeet Abhijeet - 1 month ago 5
PHP Question

How to resolve following htaccess code

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>


can any body explain me how above htaccess rule works
e.g. if I have URL http://mydomain/edituser
so what php script will match with given URL

earlier I write different rules for each given URL
but in above case how I know that witch php script get run
please help me

Answer

That rewrite rule matches any request that does not match an existing file, and routes the request to to index.php using PATH_INFO

Comments