正在将 www 添加到我的网站
我不知道为什么,但如果我输入 http://mysite.com/subsite 它会将我重定向到 http://www.mysite.com/subsite,htaccess 文件只是标准的 wordpress htaccess 文件,如果我尝试修改它以从网址中删除 www,它会引发重定向错误(因为它直接删除了 www,但随后又添加了 www,将其陷入无限循环)。有谁知道我的网址可能会发生什么?
谢谢!
I don't know why but if I type http://mysite.com/subsite it redirects me to http://www.mysite.com/subsite, the htaccess file is just the standard wordpress htaccess file, if I try to modify it to remove the www from the url it throws me a redirection error (since it removes the www corectly but then something adds the www again trapping it in an infinite loop). Does anyone know what could be doing this to my url?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
打开管理仪表板并转到“设置”->“常规”,然后查找“WordPress 地址 (URL)”或“站点地址 (URL)”。无论您将其中一项设置为什么,都会进行 URL 重写。不过我忘了是哪一个了。
Open the admin dashboard and goto Settings->General and then look for either "WordPress address (URL)" or "Site address (URL)". Whatever you have one of these set to is what is doing the URL rewriting. I forgot which one though.