Mod_rewrite rules not working in litespeed. Works in Apache
This set of rules is not working:
The Info from Admin:
It isnt make it to te last rule for some reason. Anyone see anything wrong?
/Forums.html should go to modules.php?name=Forums
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]
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]
/Forums.html should go to modules.php?name=Forums
Last edited: