开发者

Regarding htaccess, PHP and hidden variable passing

开发者_如何学运维Alright, I have a problem. Let's say that I want to be able to visit this url

`forum.mysite.com/offtopic/23894/`

and for it to pass the variables

`forum.mysite.com/file.php?board=offtopic&thread=23894`

without anyone seeing the string. Is there any way I can do this, either with .htaccess or anything else?


RewriteEngine on
RewriteRule /([^/]+)/([0-9]+)/ file.php?board=$1&thread=$2

That should work if you put it in a .htaccess file.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜