<dl id="fbmjt"></dl>
    <div id="fbmjt"></div>

    <em id="fbmjt"></em>

    <dl id="fbmjt"></dl>

      <em id="fbmjt"><ol id="fbmjt"></ol></em>
      <sup id="fbmjt"></sup><dl id="fbmjt"><ins id="fbmjt"></ins></dl>

      <div id="fbmjt"></div>

      网赚研究院

      4.11
      立即注册

      网赚研究院
      专注为中小网赚者赋能

      快捷导航
      查看: 690|回复: 5
      打印 上一主题 下一主题

      实操宝塔配置SSL开启全站Https,提升搜索引擎信任度

        [复制链接]

      771

      主题

      753

      帖子

      5691

      积分

      管理员

      Rank: 9Rank: 9Rank: 9

      积分
      5691
      跳转到指定楼层
      楼主
      发表于 2018-12-26 10:53:25 | 只看该作者 |只?#21019;?#22270; 回帖奖励 |倒序浏览 |阅读模式
        https站长应该都有所耳闻,简而言之就是http的安全版,比http更加安全,增加了传输层的安全保证,防止挟持和被抓包而且是并行下载通道,速度也可以。除了技术上的优势,各大搜索引擎(谷歌、百度)均?#30740;?#24067;,使用https会在搜索排名中给予优待。各个行业都要有意识的去做https,包括网赚论坛,所以说https是趋势,今天分享一下我是怎么开启全站https的。

      实操宝塔配置SSL开启全站Https,提升搜索引擎信任度


        一、获取ssl证书

        这一步比较简单,有条件的可以去买优?#23454;母斗裇SL证书,免费的普通证书也有很多,小编用的就是阿里云免费的ssl,直接去阿里云产品搜索ssl找到免费的购买,认证,审核完成就可以下载证书了,注意下载与自己主机软件对应的证书。

      实操宝塔配置SSL开启全站Https,提升搜索引擎信任度 实操宝塔配置SSL开启全站Https,提升搜索引擎信任度


        二、宝塔后台进行网站https设置

        进入后台选择网站-设置-ssl-其他证书(如下图),把下载的证书中的key和pem分别复制下来填入对应的框中,点击保存,开启强制https,这个时候网站理论上讲就可以正常访问了,但是大部分网站都还会有一定的问题。

      实操宝塔配置SSL开启全站Https,提升搜索引擎信任度


        三、配置cdn加速https(没有启用cdn的站长忽?#28304;?#27493;骤)

        因为小编开启了cdn,所以需要做一步cdn的设置,具体设置和步骤二类似(如下图),找到cdcn设置,点击https设置,修改配置,开启安全加速,点击免费证书,填入名称、内容、私钥(在步骤一下载的证书内都有)。

      实操宝塔配置SSL开启全站Https,提升搜索引擎信任度


        四、内部资源链接变更

        因为https的链接已经可以访问了,这时候要进后台把网站网址有http变更到https,绝大部分导航中的链接就由网站系统自动改为https版本了。但很可能还有一些导航性?#23454;?#38142;接是硬编码在模板中的,比如这个博客帖子下面的版权声明,那是人工写在模板里的,别忘了改。

        除此之外还有大量的文章内部链接也需要修?#27169;?#30001;于数据庞大,我?#19988;?#38752;数据库运行指令。宝塔软件内部有phpMyadmin,我们只需要用代码泡一下就可以了,因为我是discuz系?#24120;?#20195;码如下:

        UPDATEpre_forum_postSETmessage=REPLACE(

        message,'http://www.pkb.tw/',

        'http://www.pkb.tw/');


        如果是使用的WordPress系?#24120;?#36816;行这段代码:

        updatewp_postssetpost_content=replace(

        post_content,‘http://www.innimp.com/’,

        ‘https://www.innimp.com/’);


        走完这一步,文章内部的的链?#21360;?#38170;文本、图片路径都随之变更为新的了。

        五、权重转移

        到这一步虽然我们能访问网站,但是用户并不知道我们更换了https,大部分人还回去访问之前的默认http网址,而且对搜索引擎而言你之前的http网站是权重非常大的,我们不能浪费了这样的权重,因而要做301权重转移。我用的是Linux系统阿帕奇软件,只需要在.htaccess文件中加:

        RewriteEngineOn

        RewriteCond%{SERVER_PORT}80

        RewriteRule^(.*)$http://www.pkb.tw/$1[R=301,L]

        RewriteCond%{HTTP_HOST}^guajiba.cn[NC]

        RewriteRule^(.*)$http://www.pkb.tw/$1[L,R=301]


        这个代码只是举例,也是我用的实际代码,还有其他写法也可以,只要实现了301就?#23567;?#35775;问原http版本页面,检查301是否生效。

        六、站长?#25945;?#21457;起认证

        因为我们大部分个人站长,要顾及搜索引擎的感受,最大的减少因为改动造成的权重信任度的损失,所以我?#19988;?#20027;动去百度站长?#25945;╤ttps认证,这个认证很简单,只要完成了以上五步,点击https认证基本上几分钟就能完成认证。这是我认证完成之后的截图,满满的成就感有没有?

      实操宝塔配置SSL开启全站Https,提升搜索引擎信任度


        问题小结:

        这中间会有一些人出现一些问题,我在这里给大家总结一下:

        1、https网站引用http路径的js和css失效解决办法。

        在https的网站中引用http路径的js或css会导致不起作用,其表现就是没有任何样式存在,访问https只剩下文字,其代码形如:

        <scriptsrc="http://www.pkb.tw/jquery-1.11.0.min.js"></script>

        解决办法:

        将http:去掉,改为

        <scriptsrc="//www.pkb.tw/jquery-1.11.0.min.js"></script>

        2、网站启用https后打不开,或者一直处于加载的过程中页面丢失。

        这种情况常常是由于后台安全组只启用了80端口,没有开启443端口,因为https是走的443端口,所以网站一直处于加载中。

        解决办法:去后台启用443端口。

      实操宝塔配置SSL开启全站Https,提升搜索引擎信任度


        到此为止,您可以享受https带来的更优?#23454;?#20307;验了,过程虽然繁琐,但结果很迷人。


      回复

      使用道具 举报

      0

      主题

      16

      帖子

      56

      积分

      注册会员

      Rank: 2

      积分
      56
      沙发
      发表于 2018-12-26 10:54:26 | 只看该作者
      虎躯一震,三分走人。
      回复 支持 反对

      使用道具 举报

      0

      主题

      34

      帖子

      98

      积分

      注册会员

      Rank: 2

      积分
      98
      板凳
      发表于 2018-12-26 20:51:46 | 只看该作者
      坚决贯彻落实 <<2006消灭零回复工作会议>> 会议精神!
      回复 支持 反对

      使用道具 举报

      0

      主题

      12

      帖子

      50

      积分

      注册会员

      Rank: 2

      积分
      50
      地板
      发表于 2018-12-27 08:26:54 | 只看该作者
      本来在潜水,看到这篇矿石奇?#27169;?#23454;在忍不住出来冒个泡泡:真TM天书啊!
      回复 支持 反对

      使用道具 举报

      0

      主题

      17

      帖子

      50

      积分

      注册会员

      Rank: 2

      积分
      50
      5#
      发表于 2018-12-30 17:53:48 | 只看该作者
      ?#37327;嘈量啵?#35874;谢了~~
      回复 支持 反对

      使用道具 举报

      0

      主题

      14

      帖子

      50

      积分

      注册会员

      Rank: 2

      积分
      50
      6#
      发表于 3 天前 | 只看该作者
      sxtrj.com/newa/newa660.html
      sxtrj.com/nea/naa659.html
      sxtrj.com/nea/naa658.html
      sxtrj.com/nea/naa657.html
      sxtrj.com/nea/naa656.html
      sxtrj.com/newa/newa655.html
      sxtrj.com/nea/naa654.html
      sxtrj.com/newa/newa653.html
      sxtrj.com/nea/naa652.html
      sxtrj.com/nea/naa651.html
      sxtrj.com/nea/naa650.html
      sxtrj.com/nea/naa649.html
      sxtrj.com/nea/naa648.html
      sxtrj.com/newa/newa647.html
      sxtrj.com/nea/naa646.html
      sxtrj.com/nea/naa645.html
      sxtrj.com/nea/naa642.html
      sxtrj.com/nea/naa641.html
      sxtrj.com/newa/newa612.html
      sxtrj.com/newa/newa611.html
      sxtrj.com/newa/newa610.html
      sxtrj.com/newa/newa609.html
      sxtrj.com/newa/newa608.html
      sxtrj.com/newa/newa607.html
      sxtrj.com/newa/newa606.html
      sxtrj.com/newa/newa605.html
      sxtrj.com/newa/newa604.html
      sxtrj.com/newa/newa603.html
      sxtrj.com/newa/newa584.html
      sxtrj.com/newa/newa583.html
      sxtrj.com/newa/newa582.html
      sxtrj.com/newa/newa581.html
      sxtrj.com/news/news536.html
      sxtrj.com/new/new535.html
      sxtrj.com/news/news534.html
      sxtrj.com/news/news533.html
      sxtrj.com/news/news532.html
      sxtrj.com/newa/newa531.html
      sxtrj.com/news/news530.html
      sxtrj.com/tfgd/tfgd529.html
      sxtrj.com/tfgd/tfgd528.html
      sxtrj.com/tfgd/tfgd527.html
      sxtrj.com/tfgd/tfgd526.html
      sxtrj.com/tfgd/tfgd525.html
      sxtrj.com/tfgd/tfgd524.html
      sxtrj.com/tfgd/tfgd523.html
      sxtrj.com/tfgd/tfgd522.html
      sxtrj.com/tfgd/tfgd521.html
      sxtrj.com/tfgd/tfgd520.html
      sxtrj.com/tfgd/tfgd519.html
      sxtrj.com/tfgd/tfgd518.html
      sxtrj.com/tfgd/tfgd517.html
      sxtrj.com/tfgd/tfgd516.html
      sxtrj.com/tfgd/tfgd515.html
      sxtrj.com/tfgd/tfgd514.html
      sxtrj.com/tfgd/tfgd513.html
      sxtrj.com/tfgd/tfgd512.html
      sxtrj.com/tfgd/tfgd511.html
      sxtrj.com/tfgd/tfgd510.html
      sxtrj.com/tfgd/tfgd509.html
      sxtrj.com/tfgd/tfgd508.html
      sxtrj.com/tfgd/tfgd507.html
      sxtrj.com/tfgd/tfgd506.html
      sxtrj.com/tfgd/tfgd505.html
      sxtrj.com/tfgd/tfgd504.html
      sxtrj.com/tfgd/tfgd503.html
      sxtrj.com/tfgd/tfgd502.html
      sxtrj.com/tfgd/tfgd501.html
      sxtrj.com/tfgd/tfgd500.html
      sxtrj.com/jxtfgaz/jxtfgaz499.html
      sxtrj.com/jxtfgaz/jxtfgaz498.html
      sxtrj.com/jxtfgaz/jxtfgaz497.html
      sxtrj.com/jxtfgaz/jxtfgaz496.html
      sxtrj.com/jxtfgaz/jxtfgaz495.html
      sxtrj.com/jxtfgaz/jxtfgaz494.html
      sxtrj.com/jxtfgaz/jxtfgaz493.html
      sxtrj.com/jxtfgaz/jxtfgaz492.html
      sxtrj.com/jxtfgaz/jxtfgaz491.html
      sxtrj.com/jxtfgaz/jxtfgaz490.html
      sxtrj.com/jxtfgaz/jxtfgaz489.html
      sxtrj.com/jxtfgaz/jxtfgaz488.html
      sxtrj.com/jxtfgaz/jxtfgaz487.html
      sxtrj.com/jxtfgaz/jxtfgaz486.html
      sxtrj.com/jxtfgaz/jxtfgaz485.html
      sxtrj.com/jxtfgaz/jxtfgaz484.html
      sxtrj.com/jxtfgaz/jxtfgaz483.html
      sxtrj.com/jxtfgaz/jxtfgaz482.html
      sxtrj.com/jxtfgaz/jxtfgaz481.html
      sxtrj.com/jxtfgaz/jxtfgaz480.html
      sxtrj.com/jxtfgaz/jxtfgaz479.html
      sxtrj.com/jxtfgaz/jxtfgaz478.html
      sxtrj.com/jxtfgaz/jxtfgaz477.html
      sxtrj.com/jxtfgaz/jxtfgaz476.html
      sxtrj.com/jxtfgaz/jxtfgaz475.html
      sxtrj.com/jxtfgaz/jxtfgaz474.html
      sxtrj.com/jxtfgaz/jxtfgaz473.html
      sxtrj.com/jxtfgaz/jxtfgaz472.html
      sxtrj.com/jxtfgaz/jxtfgaz471.html
      sxtrj.com/jxtfgaz/jxtfgaz470.html
      sxtrj.com/tfgdaz/tfgdaz469.html
      sxtrj.com/tfgdaz/tfgdaz468.html
      sxtrj.com/tfgdaz/tfgdaz467.html
      sxtrj.com/tfgdaz/tfgdaz466.html
      sxtrj.com/tfgdaz/tfgdaz465.html
      sxtrj.com/tfgdaz/tfgdaz464.html
      sxtrj.com/tfgdaz/tfgdaz463.html
      sxtrj.com/tfgdaz/tfgdaz462.html
      sxtrj.com/tfgdaz/tfgdaz461.html
      sxtrj.com/tfgdaz/tfgdaz460.html
      sxtrj.com/tfgdaz/tfgdaz459.html
      sxtrj.com/tfgdaz/tfgdaz458.html
      sxtrj.com/tfgdaz/tfgdaz457.html
      sxtrj.com/tfgdaz/tfgdaz456.html
      sxtrj.com/tfgdaz/tfgdaz455.html
      sxtrj.com/tfgdaz/tfgdaz454.html
      sxtrj.com/tfgdaz/tfgdaz453.html
      sxtrj.com/tfgdaz/tfgdaz452.html
      sxtrj.com/tfgdaz/tfgdaz451.html
      sxtrj.com/tfgdaz/tfgdaz450.html
      sxtrj.com/tfgdaz/tfgdaz449.html
      sxtrj.com/tfgdaz/tfgdaz448.html
      sxtrj.com/tfgdaz/tfgdaz447.html
      sxtrj.com/tfgdaz/tfgdaz446.html
      sxtrj.com/tfgdaz/tfgdaz445.html
      sxtrj.com/tfgdaz/tfgdaz444.html
      sxtrj.com/tfgdaz/tfgdaz443.html
      sxtrj.com/tfgdaz/tfgdaz442.html
      sxtrj.com/tfgdaz/tfgdaz441.html
      sxtrj.com/tfgdaz/tfgdaz440.html
      sxtrj.com/dxtfaz/dxtfaz423.html
      sxtrj.com/dxtfaz/dxtfaz422.html
      sxtrj.com/dxtfaz/dxtfaz421.html
      sxtrj.com/dxtfaz/dxtfaz420.html
      sxtrj.com/dxtfaz/dxtfaz419.html
      sxtrj.com/dxtfaz/dxtfaz418.html
      sxtrj.com/dxtfaz/dxtfaz417.html
      sxtrj.com/dxtfaz/dxtfaz416.html
      sxtrj.com/dxtfaz/dxtfaz415.html
      sxtrj.com/dxtfaz/dxtfaz414.html
      sxtrj.com/dxtfaz/dxtfaz413.html
      sxtrj.com/dxtfaz/dxtfaz412.html
      sxtrj.com/dxtfaz/dxtfaz411.html
      sxtrj.com/dxtfaz/dxtfaz410.html
      sxtrj.com/dxtfaz/dxtfaz409.html
      sxtrj.com/dxtfaz/dxtfaz408.html
      sxtrj.com/dxtfaz/dxtfaz407.html
      sxtrj.com/dxtfaz/dxtfaz406.html
      sxtrj.com/dxtfaz/dxtfaz405.html
      sxtrj.com/dxtfaz/dxtfaz404.html
      sxtrj.com/dxtfaz/dxtfaz403.html
      sxtrj.com/dxtfaz/dxtfaz402.html
      sxtrj.com/dxtfaz/dxtfaz401.html
      sxtrj.com/dxtfaz/dxtfaz400.html
      sxtrj.com/dxtfaz/dxtfaz399.html
      sxtrj.com/dxtfaz/dxtfaz398.html
      sxtrj.com/dxtfaz/dxtfaz397.html
      sxtrj.com/dxtfaz/dxtfaz396.html
      sxtrj.com/dxtfaz/dxtfaz395.html
      sxtrj.com/dxtfaz/dxtfaz394.html
      sxtrj.com/hbsbaz/hbsbaz393.html
      sxtrj.com/hbsbaz/hbsbaz392.html
      sxtrj.com/hbsbaz/hbsbaz391.html
      sxtrj.com/hbsbaz/hbsbaz390.html
      sxtrj.com/hbsbaz/hbsbaz389.html
      sxtrj.com/hbsbaz/hbsbaz388.html
      sxtrj.com/hbsbaz/hbsbaz387.html
      sxtrj.com/hbsbaz/hbsbaz386.html
      sxtrj.com/hbsbaz/hbsbaz385.html
      sxtrj.com/hbsbaz/hbsbaz384.html
      sxtrj.com/hbsbaz/hbsbaz383.html
      sxtrj.com/hbsbaz/hbsbaz382.html
      sxtrj.com/hbsbaz/hbsbaz381.html
      sxtrj.com/hbsbaz/hbsbaz380.html
      sxtrj.com/hbsbaz/hbsbaz379.html
      sxtrj.com/hbsbaz/hbsbaz378.html
      sxtrj.com/hbsbaz/hbsbaz377.html
      sxtrj.com/hbsbaz/hbsbaz376.html
      sxtrj.com/hbsbaz/hbsbaz375.html
      sxtrj.com/hbsbaz/hbsbaz374.html
      sxtrj.com/hbsbaz/hbsbaz373.html
      sxtrj.com/hbsbaz/hbsbaz372.html
      sxtrj.com/hbsbaz/hbsbaz371.html
      sxtrj.com/hbsbaz/hbsbaz370.html
      sxtrj.com/hbsbaz/hbsbaz369.html
      sxtrj.com/hbsbaz/hbsbaz368.html
      sxtrj.com/hbsbaz/hbsbaz367.html
      sxtrj.com/hbsbaz/hbsbaz366.html
      sxtrj.com/hbsbaz/hbsbaz365.html
      sxtrj.com/hbsbaz/hbsbaz364.html
      sxtrj.com/jxtfgd/jxtfgd363.html
      sxtrj.com/jxtfgd/jxtfgd362.html
      sxtrj.com/jxtfgd/jxtfgd361.html
      sxtrj.com/jxtfgd/jxtfgd360.html
      sxtrj.com/jxtfgd/jxtfgd359.html
      sxtrj.com/jxtfgd/jxtfgd358.html
      sxtrj.com/jxtfgd/jxtfgd357.html
      sxtrj.com/jxtfgd/jxtfgd356.html
      sxtrj.com/jxtfgd/jxtfgd355.html
      sxtrj.com/jxtfgd/jxtfgd354.html
      回复 支持 反对

      使用道具 举报

      您需要登录后才可以回帖 登录 | 立即注册

      本版积?#27490;?#21017;

      QQ|站点地图|网赚地图|小黑屋|网赚论坛|网赚研究院 ( 鲁ICP备16005742号-1 )|捐助我们

      GMT+8, 2019-4-24 20:34 , Processed in 0.137458 second(s), 34 queries , Gzip On, MemCached On.

      Copyright ? 2016 酷站网 | LIUXING支持

      Powered by Discuz! X3.2

      快速回复 返回顶部 返回列表
      2005年全年开奖结果

        <dl id="fbmjt"></dl>
        <div id="fbmjt"></div>

        <em id="fbmjt"></em>

        <dl id="fbmjt"></dl>

          <em id="fbmjt"><ol id="fbmjt"></ol></em>
          <sup id="fbmjt"></sup><dl id="fbmjt"><ins id="fbmjt"></ins></dl>

          <div id="fbmjt"></div>

            <dl id="fbmjt"></dl>
            <div id="fbmjt"></div>

            <em id="fbmjt"></em>

            <dl id="fbmjt"></dl>

              <em id="fbmjt"><ol id="fbmjt"></ol></em>
              <sup id="fbmjt"></sup><dl id="fbmjt"><ins id="fbmjt"></ins></dl>

              <div id="fbmjt"></div>