【问题标题】:how to redirect wp past site without wordpress pages如何在没有wordpress页面的情况下重定向wp过去的网站
【发布时间】:2018-07-03 21:26:51
【问题描述】:

客户不再需要 Wordpress,而是需要 HTML5 CSS3 的新网站。我有过去的站点地图,其中包含指向过去页面的链接。看到他不再拥有 Wordpress,您如何将没有 wordpress 的旧 wordpress 页面重定向到新的 html 页面。他到旧网站的链接仍然有效,但没有看到页面不再在服务器上,并且已经关闭了两周。小网站4页。谢谢蒂姆

【问题讨论】:

    标签: wordpress url-redirection


    【解决方案1】:

    由于您使用的是 WordPress,我猜这是托管在 Linux 服务器上的。如果是这样,您可以使用 .htaccess 文件创建 301 重定向。

    这是一个例子 旧页面:http://www.example.com/contact-us

    进入新页面:http://www.example.com/contact.html

    RedirectMatch 301 ^/contact-us/?$ http://www.example.com/contact.html
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-01-18
      • 1970-01-01
      • 2018-11-03
      • 2011-11-06
      • 2022-01-27
      • 1970-01-01
      • 2017-01-02
      • 1970-01-01
      相关资源
      最近更新 更多