我的网址如下:
domain.com/home/login.php?ref=501201
我想将其重新编写为
domain.com/ref/501201
请告诉我.htaccess语法
RewriteRule ^ref/([0-9]+)$ /home/login.php?id=$1
因为这不起作用
答案 0 :(得分:0)
这个人正在尝试。
RewriteEngine on
RewriteRule ^/?ref/([0-9]+)$ /home/login.php?id=$1
没有经过测试。我希望工作