rewrite problem

#1
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

LiteSpeed Staff
#2
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.
 
Top