1

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
relativehttps://my.domain.de/css/print.css
http://my.domain.de/css/print.css
cssimages

4

1 に答える 1