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 not working

Reply
 
Thread Tools Display Modes
  #1  
Old 05-20-2006, 11:21 PM
shikha shikha is offline
New Member
 
Join Date: May 2006
Posts: 2
Default rewrite rule not working

Hello,

I am using cpanel with litespeed. I have enabled rewrite at server level and vhost level.

The logs show that it reads my .htacess file fine but then I do not get redirected to the page i need to .

Actually it should work as I create a folder from a blog and then it should work as

http://folder.domain name --- should show http://domainname/folder

As of now it goes juts to

http://folder.domain name -- http://domainname


Rewrite log is as below

2006-05-20 23:05:59.753 [INFO] [62.43.158.27:65217-0#www.ipselon.biz] [REWRITE] Cond: Match 'hawaii.ipselon.biz' with pattern '^www\.ipselon\.biz?$', result: -1
2006-05-20 23:05:59.753 [INFO] [62.43.158.27:65217-0#www.ipselon.biz] [REWRITE] Cond: Match 'hawaii.ipselon.biz' with pattern '^([^.]+)\.ipselon\.biz?$', result: 2
2006-05-20 23:05:59.753 [INFO] [62.43.158.27:65217-0#www.ipselon.biz] [REWRITE] Source URI: '' => Result URI: '/index.php'
2006-05-20 23:05:59.753 [INFO] [62.43.158.27:65217-0#www.ipselon.biz] [REWRITE] Last Rule, stop!
Reply With Quote
  #2  
Old 05-21-2006, 12:34 AM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
what about posting your rewrite rule too?
Reply With Quote
  #3  
Old 05-21-2006, 04:38 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
shikha,

The log shows that the rewrite has been successfully executed. It might be a bug in your rewrite rule.
Without knowing your exact rewrite rule, I can only give a wild guess here, "%n" instead of "$n" should be used for back references in rewrite conditions. Maybe you did not use "%1" to back reference the matched sub-string "hawaii" in the rewrite destination string?
Reply With Quote
  #4  
Old 05-21-2006, 06:11 PM
shikha shikha is offline
New Member
 
Join Date: May 2006
Posts: 2
Default thx

Thanx I managed to sort it out
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 rule from apache does not work zoozle Install/Configuration 1 02-27-2007 11:26 AM
wordpress permalinks choopafrank Install/Configuration 4 02-15-2007 08:38 AM
Rewrite before reverse proxy? jburks725 Install/Configuration 1 01-18-2006 12:17 PM
Rewrite not doing anything at all? pcguru Install/Configuration 1 12-07-2005 03:04 PM
rewrite content limit Channel_Cat Bug Reports 1 09-21-2004 03:37 PM


All times are GMT -7. The time now is 03:53 AM.



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