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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > [solved] Mod_rewrite rules not working in litespeed. Works in Apache

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-25-2011, 08:37 PM
peterpiper812 peterpiper812 is offline
New Member
 
Join Date: Apr 2011
Posts: 7
Default Mod_rewrite rules not working in litespeed. Works in Apache

This set of rules is not working:

Code:
  RewriteRule ^index\.html /index.php
  RewriteRule ^([a-zA-Z0-9_=+-]+)(/|\.html)$ modules=$1 [L,S=5]
  RewriteRule ^([a-zA-Z0-9_=+-]+)/([a-zA-Z0-9_]+)(/|\.html)$ modules=$1&file=$2 [L,S=4]
  RewriteRule ^([a-zA-Z0-9_=+-]+)/([a-zA-Z0-9_]+)$ modules=$1&file=$2 [L,S=3]
  RewriteRule ^([a-zA-Z0-9_=+-]+)/([a-zA-Z0-9_]+)/(.*)(/|\.html)$ modules=$1&file=$2&$3 [L,S=1]
  RewriteRule ^([a-zA-Z0-9_=+-]+)/(.*)(/|\.html)$ modules=$1&file=index&$2  [L]
  RewriteRule ^modules=(.*[^/])/(.*) modules=$1&$2 [N,L]
  RewriteRule ^modules=(.*) modules.php?name=$1 [L]
The Info from Admin:

Code:
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^index\.html', result: -1 
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^([a-zA-Z0-9_=+-]+)(/|\.html)$', result: -1 
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^([a-zA-Z0-9_=+-]+)/([a-zA-Z0-9_]+)(/|\.html)$', result: -1 
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^([a-zA-Z0-9_=+-]+)/([a-zA-Z0-9_]+)$', result: -1 
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^([a-zA-Z0-9_=+-]+)/([a-zA-Z0-9_]+)/(.*)(/|\.html)$', result: -1 
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^([a-zA-Z0-9_=+-]+)/(.*)(/|\.html)$', result: -1 
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^modules=(.*[^/])/(.*)', result: -1 
[x.x.x.x:51058-0#test.com] [REWRITE] Rule: Match '/Forums.html' with pattern '^modules=(.*)', result: -1 
[x.x.x.x:51058-0#test.com] File not found [/test.com/public/Forums.html]
It isnt make it to te last rule for some reason. Anyone see anything wrong?

/Forums.html should go to modules.php?name=Forums

Last edited by peterpiper812; 04-25-2011 at 10:01 PM..
Reply With Quote
 

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 10:48 AM.



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