rewrite rule in .htaccess: what does it do

blilsnasy

New Member
What does this line in .htaccess do, and when would I need it?\[code\]RewriteRule !.(js|css|ico|gif|jpg|png)$ index.php\[/code\]I'm working with zend and I noticed the .htaccess generated by zend doesn't have this rule, but I've seen a tutorial that has it without explaining why.\[code\]RewriteEngine OnRewriteCond %{REQUEST_FILENAME} -s [OR]RewriteCond %{REQUEST_FILENAME} -l [OR]RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.*$ - [NC,L]RewriteRule ^.*$ index.php [NC,L]\[/code\]
 
Back
Top