LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > rewrite rule from apache does not work

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2007, 09:03 AM
zoozle zoozle is offline
New Member
 
Join Date: Feb 2007
Posts: 1
Default rewrite rule from apache does not work

Hello,

i like to rewrite:

www.mywebsite.abc/?ref=reffer

to

www.mywebsite.abc/

the rewriterule:

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

does not work.

What to do?
Reply With Quote
  #2  
Old 02-27-2007, 11:26 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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 ^/$ /? [NC,L]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:25 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.