mod_rewrite : exclude folder.... not that obvious
Posted: Tue Feb 20, 2007 11:39 am
Hello,
Having a problem where that I tried several "solutions" for but neither of them worked.
My htaccess file in the root is:
But I want to exclude folder from them.
For example the folder
/images/
/admin/
etc...
I tried it with the RewriteCond to exclude those folder names but the problem is that I still want
to use mod rewrite within those folders... If you know what I mean.
For eg: when the user goes to mydomain.com/admin/, instead of the rewrite it actually goes to the mydomain/admin/ folder
but within the admin folder I still use mod rewriting for better urls.
Having a problem where that I tried several "solutions" for but neither of them worked.
My htaccess file in the root is:
Code: Select all
RewriteEngine on
RewriteRule ^([A-Za-z]+)$ /$1/ [R]
RewriteRule ^([A-Za-z]+)/$ /index.php?module=$1For example the folder
/images/
/admin/
etc...
I tried it with the RewriteCond to exclude those folder names but the problem is that I still want
to use mod rewrite within those folders... If you know what I mean.
For eg: when the user goes to mydomain.com/admin/, instead of the rewrite it actually goes to the mydomain/admin/ folder
but within the admin folder I still use mod rewriting for better urls.