[英]Redirect www.url.com/x=y to www.url.com/file.php?x=y with htaccess?
I realize this question is really poorly formed but that's why I am asking it; 我知道这个问题的形成确实很糟糕,所以这就是为什么我要问这个问题。 I wouldn't know how to type this in google.
我不知道如何在Google中键入此内容。
I want to redirect: 我想重定向:
www.url.com/x=2
to: 至:
www.url.com/file.php?x=2
Use this 用这个
Redirect 301 /x=2 www.url.com/file.php?x=2
EDIT 编辑
If you need to mass-redirect a group of links you would probably need to use the RedirectMatch directive. 如果您需要批量重定向一组链接,则可能需要使用RedirectMatch指令。
RedirectMatch ^/x=(.*)$ /file.php?x=$1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.