Snow Racer Posted June 7, 2006 Share Posted June 7, 2006 (edited) I need to know how can you disable the mod_rewrite for a specific folder? i have RewriteEngine OnRewriteBase /srx/RewriteRule ^images/?$ srx/images [L] RewriteRule ^photos/?$ index.php?act=$1 [L] RewriteRule ^photos/([^/\.]+)/?$ index.php?act=photos&browse=$1 [L] and I need "sv" folder to be ignored edit:: nevermind... added 5 need rules for each dir Edited June 7, 2006 by Snow Racer Link to comment Share on other sites More sharing options...
TheJkWhoSaysNi Posted June 7, 2006 Share Posted June 7, 2006 I'm unsure exactly what you're trying to do. Perhaps this will help: RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d This will make it not rewrite if the file or directory actually exists on the server. Is that what you were trying to do? Link to comment Share on other sites More sharing options...
Svip Posted June 8, 2006 Share Posted June 8, 2006 In general, we say that you should edit the httpd.conf file, instead of making .htaccess files. This being said, only if you have access to the httpd.conf file. This of course requires that you reload the httpd.conf file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now