由网友(冰封的温存)分享简介:谁能帮我htaccess的重写?我现在已经链接,如:can anyone help me with htaccess rewrite?I have now links like:http://site.com/all_users.php?uid=cv19143939y 但我想这样的事情http://site....
谁能帮我htaccess的重写? 我现在已经链接,如:
can anyone help me with htaccess rewrite? I have now links like:
http://site.com/all_users.php?uid=cv19143939y
但我想这样的事情
http://site.com/profile/cv19143939y
林尝试用这种
RewriteEngine叙述上
重写规则^简介/([0-9] +)all_users.php?UID = $ 1 [L]
RewriteEngine on
RewriteRule ^profile/([0-9]+) all_users.php?uid=$1 [L]
这
重写规则^资料/ $ 1 all_users.php?UID = $ 1 [L]
但简单不工作。
推荐答案
您经常EX pression不接受AZ
Your regular expression doesn't accept a-z
RewriteEngine on
RewriteRule ^profile/([0-9a-z]+) all_users.php?uid=$1 [L]
相关推荐
最新文章