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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > mod_rewrite

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2006, 06:25 PM
vip562 vip562 is offline
New Member
 
Join Date: May 2006
Posts: 7
Default mod_rewrite

Hello,

How do I enable mod_rewrite and htaccess support?

Thanks
Reply With Quote
  #2  
Old 05-10-2006, 06:44 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Looking for "Allow Override" option and "Rewrite" tab under vhost configuration.
Reply With Quote
  #3  
Old 05-10-2006, 08:33 PM
vip562 vip562 is offline
New Member
 
Join Date: May 2006
Posts: 7
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
Reply With Quote
  #4  
Old 05-10-2006, 08:42 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #5  
Old 05-10-2006, 08:48 PM
vip562 vip562 is offline
New Member
 
Join Date: May 2006
Posts: 7
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
Reply With Quote
  #6  
Old 05-10-2006, 08:51 PM
vip562 vip562 is offline
New Member
 
Join Date: May 2006
Posts: 7
I forgot to mention that the rewrite rule is in the .htaccess

Also, my server config is cpanel with centos.
Reply With Quote
  #7  
Old 05-11-2006, 12:37 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #8  
Old 05-12-2006, 01:16 PM
vip562 vip562 is offline
New Member
 
Join Date: May 2006
Posts: 7
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
Reply With Quote
  #9  
Old 05-12-2006, 02:25 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
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


All times are GMT -7. The time now is 04:23 PM.



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