Url mod_rewrite for static chained pages
- by user1121487
How can I achieve this with mod_rewrite?
from:
.com/index.php?menu=home
to:
.com/home
AND
from:
.com/index.php?menu=home&list=hello
to:
.com/home/hello
ALSO (without the folder hierarki)
from:
.com/index.php?menu=home&list=hello
to:
.com/hello
I'm using this for the first one:
RewriteRule ^([^/\.]+)/?$ index.php?menu=$1 [L]
But how to I connect them if there are multiple variables?
Tried this:
RewriteRule ^([^/]*)/([^/]*)?$ index.php?home=$1&list=$2