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... 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/ Link to comment https://forums.phpfreaks.com/topic/14961-help-with-rewritecond/#findComment-60074 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.