关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

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

发布时间:2022-10-09 20:46:24
1491984010112764.jpg

域名根目录下新建 .htaccess , 添加


RewriteEngine on

#不显示index.php

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

#指定80端口域名 lam.xx8.top 跳转到 https://lam.xx8.top

RewriteCond %{HTTP_HOST} ^lam.xx8\.top [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://lam.xx8.top/$1 [R,L]



/template/Home/8a/PC/Static