PDA

View Full Version : Rewrite issue


closet geek
02-24-2009, 06:39 AM
Hi,

We have URL's like this:

https://secure.site.com/order/shared/plan

They are rewritten using a .htaccess placed in the secure subdomain folder:

RewriteEngine On
RewriteRule ^order/shared/plan clients/cart.php [L,NC]

This works fine in Apache, but for some reason not in LiteSpeed. We are using 4.0RC1.

The debug log shows that LS reads the .htaccess but doesn't apply any rules when the above URL is accessed and simply returns a 404.

Thanks.

mistwang
02-24-2009, 02:16 PM
You have to add "RewriteLogLevel 9" to the vhost configuration to enable rewrite related logging.

closet geek
02-24-2009, 02:23 PM
This is already set. The rewrites are logged for other parts of the site but nothing is logged for the above rule. Can you verify that this exact rewrite works fine in a subdomain on your test system?

closet geek
02-24-2009, 06:20 PM
Problem found! The secure virtualhost had override settings and only Auth was selected for .htaccess not the others.