[resolved] Apache rewrite for front-controller
Posted: Tue Jun 22, 2010 3:51 pm
How to change this so I don't have to list every folder/file I want access to?
Here's what I'm currently using.
RewriteCond $1 !^(index\.php|admin|adminmvc|common|contentimg|css|scripts|lib|parts|pages|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Currently I have to manually list the exact files/folders that I don't want to be redirected.
I want any path that doesn't exist to be sent to index.php
Any folders or files that do exist should go to the requested location without me having to list each one in the .htaccess
Here's what I'm currently using.
RewriteCond $1 !^(index\.php|admin|adminmvc|common|contentimg|css|scripts|lib|parts|pages|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Currently I have to manually list the exact files/folders that I don't want to be redirected.
I want any path that doesn't exist to be sent to index.php
Any folders or files that do exist should go to the requested location without me having to list each one in the .htaccess