Discussion in 'Install/Configuration' started by vip562, May 11, 2006.
How do I enable mod_rewrite and htaccess support?
Looking for "Allow Override" option and "Rewrite" tab under vhost configuration.
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?
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.
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.
I forgot to mention that the rewrite rule is in the .htaccess
Also, my server config is cpanel with centos.
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.
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),
# set RewriteBase to DIR_WS_CATALOG
RewriteRule ^pages-(.+)\.html index.php/pages-$1 [L]
Any ideas on how to fix this.
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.
Separate names with a comma.