[英]Htaccess redirect url [add a part]
I need to redirect: 我需要重定向:
http://www.domain.com/?id=123456
to
http://www.domain.com/index.php?id=123456
with htaccess and mod_rewrite 使用htaccess和mod_rewrite
thanks 谢谢
Give this a try and see how it works for you. 尝试一下,看看它是如何为您工作的。
RewriteEngine on
RewriteCond %{QUERY_STRING} \bid=(.+)
RewriteRule ^$ /index.php?id=%1 [R=301,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.