开发者

how i can do /var?section=value by .htaccess

开发者_运维技巧i want to make this url

site.com/var?section=value

example:

esite.com/PHP?section=articles

the php is varibale and the php file is

file.php?lang=php&section=articles


Something like this maybe:

RewriteRule ^(.*?)\?section=(.*)$  file.php?lang=$1&section=$2  [NC,L]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜