weixin_39828960
weixin_39828960
2020-12-29 16:59

Added rule to redirect all http traffic to https

This rule will redirect the all http traffic to https using Apache rewrite rule.

该提问来源于开源项目:linode/docs

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39733812 weixin_39733812 4月前

    Deploy preview for nostalgic-ptolemy-b01ab8 ready!

    Built with commit 6eee3980e0a79ab70d849be3c74490860314329a

    https://deploy-preview-2805--nostalgic-ptolemy-b01ab8.netlify.com

    点赞 评论 复制链接分享
  • weixin_39733812 weixin_39733812 4月前

    Deploy preview for nostalgic-ptolemy-b01ab8 ready!

    Built with commit 408ea35f5e55e785fe841f2ce79d431456ae54c6

    https://deploy-preview-2805--nostalgic-ptolemy-b01ab8.netlify.com

    点赞 评论 复制链接分享
  • weixin_39610415 weixin_39610415 4月前

    Thank you for the PR !!!! We look forward to many such valuable contributions from you.

    点赞 评论 复制链接分享
  • weixin_39872257 weixin_39872257 4月前

    Your edits looks like using rewrite rules.

    You can also try using Redirect directive to return 301 Redirect to HTTPS site:

    apache
    <virtualhost>
        ...
        Redirect 301 / https://yourdomain.tld
    </virtualhost>
    
    <virtualhost>
        ServerName yourdomain.tld
        ...
    </virtualhost>
    
    点赞 评论 复制链接分享

相关推荐