htaccess 文件配置

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R]

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

</IfModule>

YPHP
967 声望77 粉丝

免费好用的素材站:[链接]