【发布时间】:2011-12-07 00:16:06
【问题描述】:
大家好,在此先感谢您,我正在尝试添加一个 url 作为参数,但我不能。 我的规则是:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^info/([a-zA-Z0-9|]+)/(.*)/(.*)$ info.php?user=$1&text=$2&url=$3
在浏览器中:
http://localhost/example/info/peter/hi guy/http://www.example.com
返回数组$_GETphp
[user] => peter
[text] => hi guy / http:
[url] => www.example.com
什么是正确的:
[user] => peter
[text] => hi guy
[url] => http://www.example.com
希望您的帮助谢谢
【问题讨论】:
标签: apache .htaccess mod-rewrite