HTTPS への切り替えは Yii とは関係なく、主
rewrite rules
に.htaccess
. 今、私はいくつかの問題に直面しています。.htaccess
ファイル
を変更した
後
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# manual change the url base
RewriteBase /
# otherwise forward it to index.php
RewriteRule . index.php
に
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://my.domain.de/$1 [R,L]
# manual change the url base
RewriteBase /
# otherwise forward it to index.php
RewriteRule . index.php
http
最初のログイン ページは、必要に応じて からに自動的にリダイレクトされますが、画像が読み込まれhttps
ません。これらのファイルへのすべてのパスはであるため、見つかりませんが、アクセス可能であることに気付きました。そして、私がウェブサイトのリンクをたどると、どこでも見逃されます。
助言がありますか?css
relative
https://my.domain.de/css/print.css
http://my.domain.de/css/print.css
css
images