【问题标题】:Want to redirect specific page to another page using .htaccess想要使用 .htaccess 将特定页面重定向到另一个页面
【发布时间】:2015-12-18 12:57:57
【问题描述】:

嘿,谁能告诉我如何使用 .htaccess 文件将我的这个页面 http://www.fastvpnservice.com/best-vpn-for-torrenting.html 重定向到另一个页面 http://www.fastvpnservice.com/5-best-fastest-vpn.html,我非常感谢能给我提供完整代码的人,我只是复制和粘贴将其放入我的 .htaccess 文件中。

【问题讨论】:

    标签: .htaccess redirect


    【解决方案1】:

    你可以使用:

    RewriteEngine on
    RewriteRule ^best-vpn-for-torrenting\.html$ 5-best-fastest-vpn.html [NC,R=301,L]
    

    【讨论】:

      【解决方案2】:

      您可以使用以下规则将特定 url 重定向到新位置:

      RewriteEngine on
      
      
      RewriteCond %{THE_REQUEST} /best-vpn-for-torrenting\.html [NC]
      RewriteRule ^ http://www.fastvpnservice.com/5-best-fastest-vpn.html [L,R]
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-08-10
        • 2014-09-01
        • 2016-12-19
        • 1970-01-01
        • 2012-09-09
        • 2019-12-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多