• Resolved Stever1

    (@stever1)


    I started using the Really Simple SSL plugin on my live site and it works fine. The problem is when I migrate the database from my live site to my local testing site. The local site redirects to https even though the WP Migrate DB plugin is replacing all occurrences of https with http. This, of course, breaks my entire local testing site.

    Any suggestions?
    Steve

    https://wordpress.org/plugins/really-simple-ssl/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    That is because the redirect works with .htaccess as well, and you probably have the mixed content fixer still active. Deactive the plugin using the force-deactivate script, as explained here:
    https://really-simple-ssl.com/knowledge-base/uninstall-websitebackend-not-accessible/

    Thread Starter Stever1

    (@stever1)

    Thanks for your quick response,

    So I got my local site working now but I still can’t migrate my database from my live site to my local one without https being automatically added and breaking it. I’m using the WP Migrate DB plugin with the settings they suggest for people that have SSL on their live sites.

    Do I need to deactivate Really Simple SSL on my live site? If so will SSL still work properly on my live site? I don’t understand how the plugin is supposed to be used. Are you supposed to activate it and then deactivate or are you supposed to always leave it activated?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    If you deactivate the plugin the site is not ssl anymore. The best way to do this is to migrate, then run the deactivate script. If the plugin is deactivated, https won’t be added automatically anymore.

    Really Simple SSL does not do any database changes, except for the siteurl and homeurl. So if you migrate, then deactivate, using the script, it should work.

    Thread Starter Stever1

    (@stever1)

    Thanks again,

    For some reason, in the WordPress admin, the option to change page Templates under Page Attributes has disappeared from my local site.

    Also is there a way to migrate my database and not have to clear my entire browser history after running the deactivate script?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    If, on your local site, you’ve deactivated the plugin and you are not on SSL, the disappearance of the page templates are not related to this plugin, or to SSL. It is possible that the migration has caused this. In came across this thread: https://wordpress.org/support/topic/page-template-option-gone?replies=4 where switching theme, and back, solves it.

    That you need to clear your history is caused by the way browsers handle SSL. After you’ve visited a website on SSL, the browser will remember that, and will keep loading the SSL version. If you do not load your site on SSL, you don’t have to clear the browser history.

    Thread Starter Stever1

    (@stever1)

    After reading the thread that you suggested I discovered that my index.php file was missing from my theme. No idea when or how that happened. Replacing it fixed the missing page Template problem.

    Running the deactivate script before opening my local site in a browser works great for now. I’ll have to contact the WP Migrate DB plugin author to find out why the database migration is switching my local site to https.

    Thanks so much for your time and patience!

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    You’re welcome!

    It’s not the migrate plugin that’s switching to SSL though: if you’re migrating a website with Really Simple SSL active to your local install, the plugin will keep redirecting to SSL, even though you’ve migrated to http. That’s because of the .htaccess redirect to SSL.

    The deactivation script removes the .htaccess redirect, sets the siteurl to http (in this case probably already done by WP Migrate DB), and deactivates the plugin.

    Thread Starter Stever1

    (@stever1)

    It has to be the Migrate DB plugin. I’m not moving the .htaccess from live to local. I’m not moving any files. All the Migrate DB plugin does is change the nessessary URL’s and then creates a database file for me to download. Next I open phpMyAdmin on my local server, go to my WordPress database and delete all the tables in it. Then I import the new tables from the file that Migrate DB created. I’ve checked my local .htaccess file before and after this process and it doesn’t change. There is no Really Simple SSL info in it. I only installed Really Simple SSL on my local site after it switched to SSL. I installed it so I could run the deactivate script. I never activated it.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Yes, that sounds like it’s got to be the Migrate plugin. Thanks for the update.

    Thread Starter Stever1

    (@stever1)

    Your welcome,

    In case you or someone reading this post is interested, I found the solution to my problem here:
    https://deliciousbrains.com/wp-migrate-db-pro/doc/migrating-to-http-or-back-to-https/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Breaks local testing site’ is closed to new replies.