belick Posted July 18, 2006 Share Posted July 18, 2006 I have this code and I am tring to prevent it from a folder on my root. How can I do that?RewriteEngine OnRewriteCond %{REQUEST_URI} !^/website/RewriteRule ^(.*)$ /website/$1domainname.com/anyfile gos to domainname.com/websites/anyfile but there is one folder under the root that I can't access... Quote Link to comment https://forums.phpfreaks.com/topic/14961-help-with-rewritecond/ Share on other sites More sharing options...
belick Posted July 18, 2006 Author Share Posted July 18, 2006 nevermind I got it:RewriteCond %{REQUEST_URI} !^/website/RewriteCond %{REQUEST_URI} !^/folder2/ Quote Link to comment https://forums.phpfreaks.com/topic/14961-help-with-rewritecond/#findComment-60074 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.