rewrite rule from apache does not work

mistwang

LiteSpeed Staff
#2
You need to turn on rewrite log and analyze your rewrite rule.

You should not include the domain name in the target URL, if an external redirect is not exactly what you want.

If you rewrite rule is configured at vhost level, not at context level or inside a .htaccess file, you need to use something like

Code:
RewriteCond %{QUERY_STRING} ^ref=reffer$
RewriteRule ^/$ [URL="http://www.mywebsite.abc/?"]/?[/URL] [NC,L]
 
Top