mod_rewrite

#3
I am using the fresh install of LS-std and I have used the option to use my apache conf (not import during install). I turned on "Enable Rewrite" in the "centralConfigLog" but the rewrite function still does not work. Is there something I am doing wrong?

Thanks
 

mistwang

LiteSpeed Staff
#4
Is the rewrite rule in httpd.conf or .htaccess, if it is .htaccess, you need to turn on "allow override" at server level. If you don't mind, you can send your httpd.conf to bug (at) litespeedtech.com , we will give it a try.
 
#5
When I click the server button in the LS control panel, it shows this.

HT Access Edit
Allow Override XLimit XAuth XFileInfo XIndexes XOptions None
Access File Name .htaccess

The X is a checkmark.


Thanks
 

mistwang

LiteSpeed Staff
#7
Please download 2.1.15 package again, htaccess support has not been turned on for vhost configured through httpd.conf. The bug has been fixed.
 
#8
wow, its fast. Too bad I could not get all my sites to load properly.

The apps that do not use rewrite base (in htaccess - mod_rewrite) do not seem to work.

An example of one site that just gets blank pages (its zencart),

RewriteEngine on
# set RewriteBase to DIR_WS_CATALOG
RewriteBase /
RewriteRule ^pages-(.+)\.html index.php/pages-$1 [L]


Any ideas on how to fix this.


Thanks
 

mistwang

LiteSpeed Staff
#9
Getting blank page may not be the fault of rewrite though. Might be PHP configuration, MySQL or something else, plesae check lsws/logs/error.log and stderr.log.

You can trun on rewrite logging in httpd.conf for that vhost, and post rewrite related log in error.log here.
 
Top