域名根目录下新建 .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] |