首页 网站博客

想要http跳转到https,又不想用htaccess的方法 301跳转,只好自己想办法了。

htaccess的方法,跳转是可以了。但是还是觉得php的方式会更好!
image:163762.jpg

php301代码

此处内容需要评论回复后方可阅读

使用教程

[login]
将以上代码修改为你要跳转的网址,放在主题header.php /header前即可实现!
[/login]




文章评论

    nine 访客ChromeWindows
    2021-05-11 13:07   回复

    滴滴

    NBE 访客ChromeWindows
    2021-04-24 13:00   回复

    前来学习

      留方 站长ChromeMac
      2021-04-24 14:52   回复

      欢迎

    安逸 访客ChromeAndroid
    2020-11-9 21:22   回复

    看看

    Hi 访客ChromeWindows
    2020-08-3 18:02   回复

    Σ(っ °Д °;)っ

    板栗 访客ChromeAndroid
    2020-08-2 14:54   回复

    博主,迫切需要,学习下(>_<)

    houcing 访客ChromeWindows
    2020-07-26 12:57   回复

    学习学习(ฅ´ω`ฅ)

    zkun 访客ChromeWindows
    2020-07-22 2:05   回复

    学习下,
    博主!!!

    577575 访客ChromeWindows
    2020-06-17 16:15   回复

    858685575

    DylanLi 访客ChromeWindows
    2020-05-1 5:00   回复

    OωO

    2 访客ChromeAndroid
    2020-04-19 4:09   回复

    2

    111 访客ChromeAndroid
    2020-04-17 2:11   回复

    看看

    学习下 访客ChromeWindows
    2020-04-16 6:42   回复

    学习下

    1 访客ChromeWindows
    2020-04-9 15:06   回复

    1

    bbsbuar 访客ChromeAndroid
    2020-03-25 5:58   回复

    感谢分享

    阿宝 访客ChromeWindows
    2020-03-21 3:58   回复

    拿走了

    故与 访客ChromeAndroid
    2020-03-20 11:36   回复

    拿走了

    张小三 访客ChromeLinux
    2020-03-6 11:28   回复

    dd

    wangyueshi 访客ChromeWindows
    2020-01-2 4:47   回复

    学习

    剑豪 访客ChromeWindows
    2019-12-27 13:55   回复

    kk

    dzxj 访客FireFoxWindows
    2019-11-27 16:23   回复

    来啦来啦

    ZmmWord 访客ChromeWindows
    2019-11-8 2:38   回复

    OωO

    看看 访客ChromeWindows
    2019-08-26 10:36   回复

    还阔以,加油

    苏笙 访客ChromeAndroid
    2018-08-28 17:32   回复

    路过 看看