开发者

HTACCESS Rewrite Multidimensional (eg: www.mysite.com/variable2/variable2

Hey, I'm aware I could use a HTACCESS rewrite to write

www.mysite.com/index.php?page=hello&subpage=welcome

开发者_C百科

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]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜