Given that the new domain will be structurally identical to the old domain will the following redirect be comprehensive enough to redirect everything to its new place on the new domain?
The domain name is not available to the RedirectMatch.
It isn't clear if the new domain is on the same server or not, and that affects what code you do need to use.
I would use a
RewriteCond
to test the
%{HTTP_HOST}
and a
RewriteRule
with
[R=301,L]
to redirect only those requests.
jdMorgan
8:46 pm on Dec 11, 2008 (gmt 0)
No, I think not. The expression on the left side can include only the local URL-path, not the domain. Therefore mod_alias directives cannot do what you appear to want to do here. Use mod_rewrite:
This assumes that you've got other working mod_rewrite code, and so have the required 'set-up' directives (Options +FollowSymLinks" and "RewriteEngine on") in your file.