URL重写如何影响$_GETPHP 的参数?
$_GET
假设我有一个类似的URL http://example.com/index.php?p=contact,我用它$_GET['p']来告诉index.php联系页面.如果我使用的URL转换为重写规则http://example.com/contact,将$_GET['p']仍然按预期工作?
http://example.com/index.php?p=contact
$_GET['p']
index.php
http://example.com/contact
如果确实如此,你能详细说明它的工作原理吗?如果没有,可以使用什么策略来解决问题,以便页面在重写和不重写时都能正常工作?
php friendly-url url-rewriting url-routing
friendly-url ×1
php ×1
url-rewriting ×1
url-routing ×1