Switch To HTTPS Causes Theme Admin Error

Hello,

In making the switch from HTTP to HTTPS using SSL Certificates, one of the changes that needed to be made includes the following update to the .htaccess file:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.org/$1 [R=301,L]

Where it says yourdomain I actually specify my domain.

Once this change is saved to .htaccess file, I can no longer access cornerstone, theme options etc. The behavior is that as soon as I click the “> Pro > Theme Options” link within the wordpress dashboard, I get kicked out and sent back to the WP-Admin login screen.

I’ve tested this with two different hosted domains both with X theme licenses, one of which was upgraded to Pro to see if that would resolve it, to no avail.

If I remove the code from the .htaccess file, then I can use the X or Pro control panel and get to Theme Options, Cornerstone etc.

I want to ensure all visitors are getting to the HTTPS secured version of the site.

Please advise on the fix or workaround.

Thanks.

SeabeckMensGroup

Hi @SeabeckMensGroup,

Thanks for writing in!

You can try with some different option like Easy HTTPS and better search replace plugins to setup your HTTPS properly without the code.
Actually, the plugin does the same thing you are doing manually.

Hope this fixes your issue.

Thanks

I second @basanta about the Search/Replace.

Install Better Search replace and replace:

http://www.yourdomain.org

with

https://www.yourdomain.org

See if it now works (clear all possible caches). If it doesn’t, remove the htaccess rule. Check again.

The site should now have the green lock, however, now you need to enter your domain name as http in the browser. see if it redirects properly. Also try the versions without www, and without http.

If your browser redirects properly to https, you are all set. If not, you have duplicate content issue, and you have to google for some different htaccess rule. Try few until you find one that works.

htaccess rule makes sure that all other variants redirect to https variant.

Thanks for helping out, @Misho.

Thank you everyone for your responses and help. I’ll give it a whirl and circle back if it doesn’t work. Thanks again!

Hi there,

It seems that you have deleted your recent post.

Please let us know in case you have some questions.

Thank you.

UPDATE:

The “Better Search Replace” solution didn’t work at all. I think there is a duplicate content issue and messing with googled .htaccess potential solutions made me cross-eyed. :slight_smile:

However, I found a plugin that solved it, all day:

Force HTTPS (SSL Redirect & Fix Insecure Content)

LittleBizzy’s plugin worked like a charm for me on both sites.

Thanks again!

Hey @SeabeckMensGroup,

We are just glad that you have figured it out a way to correct the said issue.

Best Regards.

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