Jump to content

Apache rewriterule


mesh2005

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/63037-apache-rewriterule/
Share on other sites

Archived

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

×
×
  • Create New...

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.