<p>Issue within the <code>.htaccess</code> file!</p>

<p>These lines were causing the redirect to https to malfunction:</p>

<pre><code># Remove trailing slashes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [R=301,L]
</code></pre>

CC BY-SA 4.0
2019-11-01T19:14:00.390Z
2019-11-01T19:14:00.390Z
Kelly B
<p>I have an English site - <a href="https://dev.mysite.com" rel="nofollow noreferrer">https://dev.mysite.com</a> and a Japanese site - <a href="https://dev.mysite.com/jp" rel="nofollow noreferrer">https://dev.mysite.com/jp</a>. </p>

<p>Live preview works great for the English site, but the Japanese site has the following error:</p>

<p><code>Mixed Content: The page at 'https://dev.mysite.com/admin/entries/home/3-home?site=japanese&amp;draftId=90' was loaded over HTTPS, but requested an insecure resource 'http://dev.mysite.com/jp?x-craft-live-preview=dbSSGfPfBY&amp;token=LTNsMdKk-I8XWFyoh7ozK2akf4Hy_oOO'. This request has been blocked; the content must be served over HTTPS.
</code></p>

<p>I have the <code>Base URL</code> set within the Sites admin panel to https, as well as the <code>siteUrl</code> within <code>general.php</code>. </p>

<p>What am I missing?</p>

<p>Thank you!
Kelly</p>

<localization><multi-site><live-preview>
Multisite, second language Live Preview not working
# Multisite, second language Live Preview not working

(Asked by: username_0 on 2019-10-31)

I have an English site - <https://dev.mysite.com> and a Japanese site - <https://dev.mysite.com/jp>.

Live preview works great for the English site, but the Japanese site has the following error:

`Mixed Content: The page at 'https://dev.mysite.com/admin/entries/home/3-home?site=japanese&draftId=90' was loaded over HTTPS, but requested an insecure resource 'http://dev.mysite.com/jp?x-craft-live-preview=dbSSGfPfBY&token=LTNsMdKk-I8XWFyoh7ozK2akf4Hy_oOO'. This request has been blocked; the content must be served over HTTPS.`

I have the `Base URL` set within the Sites admin panel to https, as well as the `siteUrl` within `general.php`.

What am I missing?

Thank you!
Kelly

**Tags:** localization, multi-site, live-preview

---

## 1 answers

### Answer by username_0 on 2019-11-01. Score: 1

Issue within the .htaccess file!
These lines were causing the redirect to https to malfunction:
# Remove trailing slashes
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [R=301,L]


---

