Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

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

$
0
0

Replies: 0

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)

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 2 minutes ago by wordmax.

Viewing all articles
Browse latest Browse all 59525

Trending Articles