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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > [solved] Apache Rewrite Rules with RewriteBase not working

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-16-2012, 11:45 AM
thehelpdesk thehelpdesk is offline
Member
 
Join Date: Feb 2011
Posts: 14
Default [solved] Apache Rewrite Rules with RewriteBase not working

We've migrated a client to LSWS 4.1.10 Ent from an Apache environment. The site worked perfectly in Apache but now the ReWrite rules aren't working correctly. Below are the rules in the problematic .htaccess file:

RewriteEngine On
RewriteBase /directory/

RewriteCond %{REQUEST_URI} !index.php
RewriteRule ^([^/]*)/([^/]*)/([^/]*)/([^/]*)$ index.php?func=$1&urlA=$2&urlB=$3&urlC=$4 [L]
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ index.php?func=$1&urlA=$2&urlB=$3 [L]
RewriteRule ^([^/]*)/([^/]*)$ index.php?func=$1&urlA=$2 [L]
RewriteRule ^([^/]+)/(.*)$ index.php?func=$1 [QSA,L]

The rewrite engine appears to be working but its not passing variables on to index.php as it should be. We can't seem to figure out how to get it to work in LSWS even though everything works perfectly in Apache.
Reply With Quote
 

Tags
.htaccess, rewrite, rewrite. litespeed

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 09:27 PM.



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