Abhijeet Abhijeet - 1 year ago 71
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]


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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download