Htaccess Rewrite Rule
Posted
by Marcx
on Stack Overflow
See other posts from Stack Overflow
or by Marcx
Published on 2010-03-12T20:55:24Z
Indexed on
2010/03/12
20:57 UTC
Read the original article
Hit count: 317
Hi, I'm getting crazy with htaccess and rewrite rule.. I'd like to understand how it works, I hate it, anyway here's my problem
(really simple for most of you)
My site has one main page index.php
.
This is the only page, all the others are handled by this one.
I did a simple RewriteRule
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?page=$1
to do this: http://www.me.ext/index.php?page=VAL
-> http://www.me.ext/VAL
but I don't know how create a rule for this
http://www.me.ext/index.php?page=VAL&var1=VAL2&var2=VAL3
etc.
I'd like a final url like:
http://www.me.ext/VAL/VAL2/VAL3
etc.
Thanks
© Stack Overflow or respective owner