.htaccess - htaccess redirect url with domain as variable to an external site -
i want redirect
http://example.com/report?domain=dollarshaveclub.com to
http://www.semrush.com/info/dollarshaveclub.com+%28by+organic%29 i've tried:
rewriteengine on rewritebase / rewritecond %{query_string} ^?domain=$ rewriterule ^report$ http://www.semrush.com/info/$1+%28by+organic%29 [r=301,l] but i'm not getting anywhere...what try next?
you must remove r=301, part.
this works me:
rewriteengine on rewriterule ^report$ http://www.semrush.com/info/$1+%28by+organic%29 [nc]
Comments
Post a Comment