mod rewrite escape chars

Posted by Eugene on Stack Overflow See other posts from Stack Overflow or by Eugene
Published on 2010-04-19T09:03:54Z Indexed on 2010/04/19 9:53 UTC
Read the original article Hit count: 383

Filed under:
|
|
|

hi, simple question

www.site.com/page/3

to be

www.site.com/page--3

so that i can read the pagenumber and page

This is what i got but i dont know how to use the '--' and slash together instead.

RewriteRule ^/?([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ index.php?page=$1&subpage=$2

Any help appreciated

© Stack Overflow or respective owner

Related posts about mod

Related posts about mod-rewrite