【发布时间】:2012-12-24 05:45:48
【问题描述】:
如果我有一个 mod 重写代码如下:
RewriteRule ^/(\w+)/?$ index.php?id=$1
我是 mod-rewrites 的新手,我想知道用户是否输入了干净的 url 而不是不干净的,例如
进入浏览器而不是
http://example.com/index.php?id=1000
我仍然可以请求 1000 的 $_GET[] 变量吗?
谢谢大家。
【问题讨论】:
-
应该可以。你试过了吗?
标签: php apache mod-rewrite