PDA

View Full Version : rewrite problem


illidan
04-09-2005, 06:00 PM
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

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^(.+)$ /index.php?fo=$1 [L]

mistwang
04-11-2005, 03:03 PM
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.

illidan
04-14-2005, 03:48 PM
still it does not work as expected. it redirects to index.php althougt the file exists.

mistwang
04-15-2005, 11:14 AM
Have you turned on the rewrite log, what was it?

mistwang
04-18-2005, 04:42 PM
Please try 2.0.3 release, this should be addressed.