阿里云ecs,免费ssl证书,apache,配置https后资源404
本帖最后由 天水依然 于 2019-12-16 20:46 编辑.htaccess
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond $1 !^(index\.php|robots\.txt|resources)
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1
RewriteRule ^(.*)$ index.php?/$1
</IfModule>
请教大侠???
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|robots\.txt|resources|static|uploads)
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php
</IfModule>
rewrite的不对,这样就能打开了。
页:
[1]