Hello:
I'm having some difficulty getting Apache to redirect page requests with
an informative message. My place of employment is moving from their old
domain name to a new one. We now have both of these domain names active,
both of which point to the same server. Although we will be phasing out
the old address very soon, people continue accessing the pages at the old
address, hence the reason for the redirect.
Putting something like <META HTTP-EQUIV="refresh"
"CONTENT=05;URL=http://newdomain.com/newpage"> in all our pages is not
an optimal solution because (a) there are hundreds of pages that would
need to be updated, (b) this solution doesn't display an informative
message before the redirect, and (c) Apache provides a better solution.
I've tried using a RedirectMatch:
RedirectMatch http://olddomain.com/~test/(.*) http://newdomain.com/~test/$1
Unfortunately, any pages access in .../~test do not redirect, but access
from the olddomain.com.
I've also tried a RewriteRule:
RewriteRule http://olddomain.com/~test/.* http://newdomain.com/~test/$1 [R=301L]
This also doesn't seem to work.
Is there a way to redirect visitors to all pages (or some pages in a
given directory or directories) with an informative message that appears
for about 5 seconds from the old access point to the new one? (Notice I
say "access point" instead of "old page to new page" -- since the pages
are the _same_ as the old and new addresses point to the same server)
Thanks in advance for any assistance.
--------------< LINUX: The choice of a GNU generation. >--------------