Title: No https:// on first page load &#8211; because the .htaccess code (wrong)
Last modified: July 18, 2022

---

# No https:// on first page load – because the .htaccess code (wrong)

 *  [wordmax](https://wordpress.org/support/users/wordmax/)
 * (@wordmax)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/no-https-on-first-page-load-because-the-htaccess-code-wrong/)
 * With the default htaccess code used by WP Fastest Cache the very first page load
   of the site is always not secure (no https). All subsequent page loads after 
   this are https:// which is good. We tested this with Litespeed plugin as well
   with same effect.
 * If WPFC or Litespeed plugins are disabled, the site ALWAYS loads https:// on 
   the first page load (because wordpress site address settings are [https://example.com](https://example.com))
 * But guess what…
 * All that is needed to fix this issue with non https:// on first page load is 
   to add one line of code at the beginning of the .htaccess file
 * `RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]`
 * This fixes the problem and the site loads https:// on first page load every time.
 * So, I guess you can’t blame the issue on other plugins or user error after all.
 * Suggest you revist the .htaccess code generated by the plugin and find a permanent
   solution. Litespeed plugin devs could do the same.
    -  This topic was modified 3 years, 10 months ago by [wordmax](https://wordpress.org/support/users/wordmax/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/no-https-on-first-page-load-because-the-htaccess-code-wrong/#post-15836600)
 * are the urls httpS or http?
 * ![](https://i0.wp.com/i.ibb.co/L50h2Vt/options-general.webp?ssl=1)

Viewing 1 replies (of 1 total)

The topic ‘No https:// on first page load – because the .htaccess code (wrong)’ 
is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 1 reply
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/no-https-on-first-page-load-because-the-htaccess-code-wrong/#post-15836600)
 * Status: not resolved