I'm relatively new to mod_rewrite but not totally new.
i have this situation which is strange or i'm missing something out.
on my site i have the following on my .htaccess file
- Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
What this does you know. I have one directory e.g.
http://www.mysite.com/cms/ which i cant seem to access cause everytime i hit this url i get the front page again.
So i put this on my .htaccess file under my root to correct the problem
- Code: Select all
RewriteEngine On
RewriteCond %{REQUEST_URI} !/cms/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
in order to exclude it., but it doesn't seem to work.
All i want is to display normally everything under this cms directory ...
I have tried different patterns but nothing...
Does anyone have any idea how I can do this ?
thank you guys so much in advance...