.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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -