我使用这个规则重写链路URL重写规则
RewriteEngine On
RewriteRule ^(.*)/(.*) show_cv.php?email=$1
,如果我写这篇文章的网址与去年斜线
www.mysite.com/[email protected]/ ----> [email protected]
但是当它工作正常状我从链接www.mysite.com/[email protected]/
删除最后一个斜杠它显示错误404.
我希望URL重写规则适用于斜杠和没有斜杠(/
)
www.mysite.com/[email protected]/ ----> [email protected]
www.mysite.com/[email protected] ----> [email protected]
嗯,我已经使用这个规则,但在show_cv.php我没有得到“[email protected]”值在查询字符串中,我在查询字符串中获得“show_cv.php”值。 – DEVESH 2012-07-31 16:45:56