I am trying to redirect ALL requests for mydomain.com whether they are something like:
- http://www.mydomain.com
- http://mydomain.com
- http://mydomain.com/photos
- http://mydomain.com/index.php?id=672
to be redirected to
As long as it has mydomain.com in it, they should see this page – its a we’ll be back soon message.
Should I do it in .htaccess or conf? How?
I actually ended up finding the answer on ServerFault:
https://serverfault.com/questions/32513/url-redirect-to-another-page-on-the-same-site
“This example will 302 redirect all URLs to “/underconstruction.html”:
(which translates as “If URI is not /underconstruction.html, redirect to /underconstruction.html”)” – Tommeh