title: Yii switching to HTTPS
body: <p>I know, that switching to HTTPS has nothing to do with Yii, and it is mainly adding 
  <code>rewrite rules</code> in <code>.htaccess</code>.
  Now I am facing some problems. After I changed my <code>.htaccess</code> file 
  <br /><br /><b>from</b></p>
  
  <pre><code>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 
  </code></pre>
  
  <p><br /><b>to</b></p>
  
  <pre><code>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
  </code></pre>
  
  <p>The first login page is automatically redirected from <code>http</code> to <code>https</code> as I wanted, but there are no <code>css</code> and images loaded. <br />I have noticed that all the paths to these files are <code>relative</code>, so <code>https://my.domain.de/css/print.css</code> is not found, but <br /><code>http://my.domain.de/css/print.css</code> is accessible.<br /> And if I go through the links in web-site <code>css</code> and <code>images</code> are everywhere missed. <br /><br />
  Any suggestions?</p>