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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > rewrite problem

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2005, 05:00 PM
illidan illidan is offline
New Member
 
Join Date: Dec 2004
Posts: 8
Default rewrite problem

what is the problem with this rewrite it works on apache but not litespeed it takes 3 hours for me but nothing changed, It is a bug I think. All I want is to redirect mising directories to index.php
Quote:
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^(.+)$ /index.php?fo=$1 [L]
Reply With Quote
  #2  
Old 04-11-2005, 02:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Sorry about that.

%{REQUEST_FILENAME} might be implemented slightly different between LiteSpeed and Apache, litespeed always try to figure out correct PATH_INFO, so it may always end up with a directory. We will take a closer look and make LiteSpeed behave exactly like apache.

For now, I think you can try something like replacing %{REQUEST_FILENAME} with %{DOCUMENT_ROOT}%{ REQUEST_URI}, see if work or not.
Reply With Quote
  #3  
Old 04-14-2005, 02:48 PM
illidan illidan is offline
New Member
 
Join Date: Dec 2004
Posts: 8
Default not working

still it does not work as expected. it redirects to index.php althougt the file exists.
Reply With Quote
  #4  
Old 04-15-2005, 10:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Have you turned on the rewrite log, what was it?
Reply With Quote
  #5  
Old 04-18-2005, 03:42 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Please try 2.0.3 release, this should be addressed.
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 Problem Jetro General 6 03-26-2007 01:27 PM
problem with rewrite & 404 error xinn Install/Configuration 6 06-21-2006 10:45 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 08:06 AM.



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