I'm attempting to redirect ALL demands for mydomain.com whether or not they are something similar to:

to become rerouted to

As lengthy because it has mydomain.com inside it, they ought to check this out page - its a we'll return soon message.

What is the easiest method to do that - .htaccess or in the actual conf?


I really wound up locating the answer on ServerFault:


"This situation will 301 redirect all Web addresses to "/underconstruction.html":

RewriteEngine On
RewriteCond %{REQUEST_URI} !=/underconstruction.html
RewriteRule ^ /underconstruction.html [R=301]

(which means "If URI isn't /underconstruction.html, redirect to /underconstruction.html")" - Tommeh