安装了magento 2.1.9 默认的luma, http 访问正常,ssl cert 在sslabs测试也正常,但https 就是有问题,
1)首页显示混乱,像css 没有正常执行
2)其他内页Not Found
是rewrite问题吗?应该怎样写
Luma能否支持https
谢谢
安装了magento 2.1.9 默认的luma, http 访问正常,ssl cert 在sslabs测试也正常,但https 就是有问题,
1)首页显示混乱,像css 没有正常执行
2)其他内页Not Found
是rewrite问题吗?应该怎样写
Luma能否支持https
谢谢
当然是支持的。不清楚你的环境,最好把配置发一下。
.htaccess (http)
Options +FollowSymLinks RewriteEngine on RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{REQUEST_METHOD} ^TRAC[EK] RewriteRule .* - [L,R=405] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule .* index.php [L]mysite.conf
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
RewriteRule . index.php [L]
打开firefox,有这样的错误,
Loading failed for the with source “https://mysite/pub/static/version1524050525/frontend/Magento/luma/en_US/requirejs/require.js”.
是什么东西?
https://github.com/magento/magento2/blob/2.2-develop/.htaccess.sample
参考一下magento默认的rewrite。
还有就是需要看你的magento设置。