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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Rewrite not doing anything at all?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-07-2005, 12:44 PM
pcguru pcguru is offline
Member
 
Join Date: Nov 2005
Posts: 17
Default Rewrite not doing anything at all?

Hello again. =)

I'm trying to do some simple redirects with the rewrite feature on a virtual host. I've enabled rewirite in "Rewrite Control".

I do not understand what "Rewrite Map" is for unfortunately, the help is just confusing about that section. I have not filled in anything here.

I've added a rule to the "Rewrite Rules" section:
RewriteRule ^test$ /index.php?var=test [R]

Unforunately going to http://server/test simply gives a 404 error. What am I doing wrong? Using Litespeed 2.1.6.
Reply With Quote
  #2  
Old 12-07-2005, 03:04 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Full URL should be used in rewrite rules at vhost level, in your case, the rewrite rule should be:
Code:
RewriteRule ^/test$ /index.php?var=test [R]
However, when you use rewrite rules in a .htaccess or at context level, you need to specify a parital URL relative to that directory or context, like the one you used.

To debug a rewrite rule, you need to set Server error log "log level" to "info", and Rewrite "Log level" to "9", then you can find log messages in lsws/log/error.log to help you debugging your rules. :-)

George
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rewrite Engine does not pick up correct REQUEST_FILENAME when using PATH_INFO dreamscape Bug Reports 3 04-19-2007 05:44 PM
Best way to redirect legacy URLs with Rewrite Map? subBlue Install/Configuration 1 01-18-2007 09:51 AM
rewrite rule not working shikha Install/Configuration 3 05-21-2006 06:11 PM
Rewrite before reverse proxy? jburks725 Install/Configuration 1 01-18-2006 12:17 PM
rewrite content limit Channel_Cat Bug Reports 1 09-21-2004 03:37 PM


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.