mesh2005 Posted August 2, 2007 Share Posted August 2, 2007 I have been having a trouble adding the following rule: RewriteRule ^/dir/.*$ http://mydomain.com/index.html full path to directory dir is: /var/www/dir full path to index: /var/www/index.html I want to redirect all requests of any pages under "dir" to index.html but it seems not to be working. Please help. Quote Link to comment Share on other sites More sharing options...
hackerkts Posted August 3, 2007 Share Posted August 3, 2007 You might wanna try this, RewriteRule ^dir/(.*)$ index.html Not sure if it works. Quote Link to comment 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.