Jump to content


Photo

Help with RewriteCond


  • Please log in to reply
1 reply to this topic

#1 belick

belick
  • Members
  • PipPipPip
  • Advanced Member
  • 60 posts

Posted 18 July 2006 - 07:13 PM

I have this code and I am tring to prevent it from a folder on my root. How can I do that?


RewriteEngine On
RewriteCond %{REQUEST_URI} !^/website/
RewriteRule ^(.*)$ /website/$1

domainname.com/anyfile gos to domainname.com/websites/anyfile  but there is one folder under the root that I can't access...
<?="C"+"Y"+"T"+"N"+"E"+"T"+"."+"C"+"O"+"M";?>
Cytnet.com :-)

#2 belick

belick
  • Members
  • PipPipPip
  • Advanced Member
  • 60 posts

Posted 18 July 2006 - 07:19 PM

nevermind I got it:
RewriteCond %{REQUEST_URI} !^/website/
RewriteCond %{REQUEST_URI} !^/folder2/
<?="C"+"Y"+"T"+"N"+"E"+"T"+"."+"C"+"O"+"M";?>
Cytnet.com :-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users