Jump to content

Archived

This topic is now archived and is closed to further replies.

belick

Help with RewriteCond

Recommended Posts

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...

Share this post


Link to post
Share on other sites
nevermind I got it:
RewriteCond %{REQUEST_URI} !^/website/
RewriteCond %{REQUEST_URI} !^/folder2/

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.