Forum Moderators: phranque
How do I redirect domain.DE to domain.COM/deutsch.html using regular expressions?
This is how it works now:
RewriteCond %{HTTP_HOST} ^domain\.de$ [NC]
RewriteRule ^(.*)$ [domain.com...] [L,R=301]
I need it mostly for the marketing purposes (promoting .DE domain to German market and redirecting to .COM domain with German content at /deutsch.html then).
Any help is appreciated.
By adding "/deutsch.html" to the substitution URL:
RewriteCond %{HTTP_HOST} ^(www\.)?domain\.de(:[0-9]+)?$ [NC]
RewriteRule (.*) http://www.domain.com/deutsch.html [R=301,L]
Jim