[英]issues with wordpress redirection to https instead of http site
All, 所有,
I had some mod rewrite rules for wordpress which were working fine until i tested today.All my requests are going through https despite of clear redirection in my mod rewrite to http link. 我有一些适用于wordpress的mod重写规则,直到我今天测试为止,这些规则都可以正常工作。尽管我的mod rewrite明确重定向到http链接,但我所有的请求都通过https。
Following is the redirect i have 以下是我的重定向
RewriteCond %{HTTP_HOST} ^(www\.)?mycompany\.com$ [NC]
RewriteRule ^/abc/?$ http://ww2.mycompany.com/test/abc.html/? [R=301,L]
If i go ahead and type www.mycompany.com/abc in url it redirects me to https://ww2.mycompany.com/test/abc.html/ instead of http://ww2.mycompany.com/test/abc.html/ 如果我继续在URL中键入www.mycompany.com/abc,它将重定向到https://ww2.mycompany.com/test/abc.html/而不是http://ww2.mycompany.com/test/abc .html /
Not sure what changed as it was working when i implemented atleast a year ago. 不确定一年前我实施时是否发生了什么变化。
Any help will be appreciated. 任何帮助将不胜感激。 Thanks
谢谢
Remove leading slash: 删除前导斜杠:
RewriteCond %{HTTP_HOST} ^(www\.)?mycompany\.com$ [NC]
RewriteRule ^abc/?$ http://ww2.mycompany.com/test/abc.html/? [R=301,L]
.htaccess
is per directory directive and Apache strips the current directory path from RewriteRule
URI pattern. .htaccess
是每个目录指令,Apache从RewriteRule
URI模式中剥离当前目录路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.