快捷导航

linux云服务器apache下设置指定域名跳转到https

[复制链接]
查看: 104|回复: 0
发表于 2023-6-29 15:33:07 | 显示全部楼层 |阅读模式
域名根目录下新建 .htaccess , 添加RewriteEngine on#不显示index.phpRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]#指定80端口域名 lam.xx8.top 跳转到 https://lam.xx8.topRewriteCond %{HTTP_HOST} ^lam.xx8\.top [NC]RewriteCond %{SERVER_PORT} 80RewriteRule ^(.*)$ https://lam.xx8.top/$1 [R,L]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

精彩推荐

尚云驿站

  • 投诉建议:350467567@qq.com
  • 软文投稿:350467567@qq.com
  • 友情链接:350467567@qq.com

云服务支持

精彩文章,快速检索

Copyright 尚云驿站  Powered by©  技术支持:飛    ( 闽ICP备2025116718号-15 )