RewriteCond %{REQUEST_URI} !/directoryname
doesn't work for me. Added this rule in my .htaccess, which is in the root. Replaced directoryname for my oscommerce admin folder (www.mydomain.com/catalog/admin)
But i always get the SS error: page not found, but it does exist
Also see: http://www.silverstripe.org/general-questions/show/285405?start=0#post285464
htaccess code:
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
htaccess looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_URI} !/http://www.mydomain.nl/webshop/catalog/admin/
</IfModule>
### SILVERSTRIPE END ###
Why doens't it work?