Forum Moderators: phranque
I'm hoping someone can help me with this..
I have a site I'm using an htaccess on with rewriterules.
BUT, I need all requests going to a directory to NOT
be effected by the rewrite.
Here's the htaccess I'm using:
---------- [Current HTACCESS] ------------
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^index.html$ index.php
RewriteRule ^browse-(.*)-(.*)-(.*)-(.*).html?$ index.php?Mode=$1&Browse=$2&Sort=$3&Page=$4 [QSA,L]
RewriteRule ^item-(.*).html?$ product.php?ASIN=$1 [QSA,L]
RewriteRule ^search-(.*)-(.*)-(.*)-(.*).html?$ search.php?Mode=$1&q=$2&t=$3&Page=$4 [QSA,L]
RewriteRule ^(.*)-(.*)-(.*)-(.*)-(.*).html?$ index.php?Mode=$2&Browse=$3&Sort=$4&Page=$5 [QSA,L]
RewriteRule ^(.*)-cat-(.*).html?$ index.php?cat=$2 [QSA,L]
RewriteRule ^(.*)-(.*).html?$ product.php?ASIN=$2 [QSA,L]
--------------- [ END ] ------------
Now, I need all requesting going to the /hosting/ directory to NOT be effected by thw above rewrite.
Any help would be GREAT...
Thank you -
- Ray
Welcome to WebmasterWorld!
Add a rule at the top to exit immediately and bypass any following rules:
RewriteRule ^hosting/ - [L]
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-(.*)\.html?$ /index.php?Mode=$2&Browse=$3&Sort=$4&Page=$5 [QSA,L]