简体   繁体   English

如何将 index.html 重定向到 Wordpress 站点?

[英]How do I redirect index.html to a Wordpress site?

I am trying to move my html website over to a wordpress multisite and can't work out how to redirect the current homepage at www.essexmums.org to www.essexmums.com我正在尝试将我的 html 网站移至 wordpress 多站点,但无法弄清楚如何将 www.essexmums.org 上的当前主页重定向到 www.essexmums.com

I've been trying to use 302 redirects (before I do the 301s) but if I use:我一直在尝试使用 302 重定向(在我使用 301 之前),但是如果我使用:

Redirect 302 /index.html http://www.essexmums.com重定向 302 /index.html http://www.essexmums.com

or even甚至

Redirect 302 / http://www.essexmums.com重定向 302 / http://www.essexmums.com

I just get a message that it has caused the page to redirect too many times.我刚收到一条消息,说它导致页面重定向太多次。

What am I doing wrong?我究竟做错了什么?

Thanks谢谢

edit: I'm not talking about a way of redirecting the whole site as I am setting up more specific redirects for those, I literally just want to redirect the current home/index page to the new one.编辑:我不是在谈论一种重定向整个网站的方法,因为我正在为这些网站设置更具体的重定向,我实际上只是想将当前主页/索引页面重定向到新页面。

IN case anyone else has this problem, I thought I would post my solution.万一其他人有这个问题,我想我会发布我的解决方案。

It turned out my problem came from my .com site being an add-on domain - it was redirecting because it was part of the .org.原来我的问题来自我的 .com 站点是一个附加域 - 它正在重定向,因为它是 .org 的一部分。 I've since moved it to a different host and the standard我已经将它移到了不同​​的主机和标准

Redirect 301 /index.html http://www.essexmums.com重定向 301 /index.html http://www.essexmums.com

works fine.工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM