Mod_rewrite question

toonm

New Member
#1
Hello,

The following rule is working in Apache, but not in Litespeed;

RewriteRule ^$ /home

How can we resolve this?

(For a quick fix i have used : RewriteRule ^$ index.php?menu=home&page=home but that's dirty ;-))

Full rewrites:
RewriteRule ^([a-z0-9_\-]+)/([a-z0-9_\-]+)/([a-z0-9_\-]+)/([a-z0-9_\-]+)$ index.php?menu=$1&page=$2&subpage=$3&id=$4
RewriteRule ^([a-z0-9_\-]+)/([a-z0-9_\-]+)/([a-z0-9_\-]+)$ index.php?menu=$1&page=$2&subpage=$3&id=$3
RewriteRule ^([a-z0-9_\-]+)/([a-z0-9_\-]+)$ index.php?menu=$1&page=$2&subpage=$2&id=$2
RewriteRule ^([a-z0-9_\-]+)$ index.php?menu=$1&page=$1&subpage=$1&id=$1
RewriteRule ^$ /home

Many thanks!
 
Last edited:
Top