.htaccess - htaccess redirect including string -
i know how redirect normal links without strings, including string email addresses has me stuck. can please assist 301 redirecting url domain including url string? need redirect following:
www.domain.com/page.php?e=tom-jones@mail.com
to
www.domain1.com/?e=tom-jones@mail.com
i need keep email address in string when it's redirected new url
thanks in advance.
in htaccess file in www.domain.com
document root, can add:
redirectmatch 301 ^/page\.php$ http://www.domaon1.com/
the query string automatically appended. or can use mod_rewrite:
rewriteengine on rewritecond %{http_host} ^(www\.)?domain\.com$ [nc] rewriterule ^page\.php$ http://www.domaon1.com/ [l,r=301]
Comments
Post a Comment