Unable to preview pages

Since upgrading to the PRO theme, I am unable to preview posts that I am working on. I get the following error message.

The preview could not load due to a http/https mismatch. Please check that HTTPS is properly configured on your site. Origin URL: https://mbrt.org
**Preview URL: http://mbrt.org/news/

We host our site on Amazon Lightsail and run all traffic through a Sucuri website firewall. The site is setup with HTTP, however the firewall uses protocol redirection to force https access only.

Without abandoning our firewall, how can we fix this issue and get back the ability to preview posts?

Thank you,
Chris

Hello Chris,

Main setup should also be HTTPS. On Settings > General, the following setting should be both HTTPS

It cannot be redirection only because it will result to htpps mismatch error.

Thank you for the response. I tried this solution. However, when I update the wordpress and site addresses to include the https:// the site fails to load and I get a too many redirects error message. Any other ideas?

Hi @techadm,

Please do not change the Wordpress Address and Site Address directly in the Settings > General. You can use a plugin like Better Search Replace to replace the http instances of your URL in the database to https.

Do the 2 steps below, but please, just to play safe keep a backup of your database first.

replace http://www.myurl.com -> https://www.myurl.com
replace http:\/\/www.myurl.com -> https:\/\/www.myurl.com

Then Clear all your caching features after.

Let us know how it goes,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.