HTACCESS Rewrite Multidimensional (eg: www.mysite.com/variable2/variable2
Hey, I'm aware I could use a HTACCESS rewrite to write
开发者_C百科www.mysite.com/index.php?page=hello&subpage=welcome
to
www.mysite.com/1/hello/welcome
But is there any way to rewrite it to
www.mysite.com/hello/welcome
??
Uh, just modify your rule. Something like this ought to work:
RewriteRule ^(.*?)/(.*?)/$ index.php?page=$1&subpage=$2 [NC,L]
精彩评论