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ません。これらのファイルへのすべてのパスはであるため、見つかりませんが、アクセス可能であることに気付きました。そして、私がウェブサイトのリンクをたどると、どこでも見逃されます。
助言がありますか?cssrelativehttps://my.domain.de/css/print.csshttp://my.domain.de/css/print.csscssimages