Moving WordPress from http to https over existing site

Some of the things I have to double-check when I install an SSL certificate on a WordPress website are: Define SSL settings in wp-config.php to override WordPress database settings /** SSL Security */ define(‘FORCE_SSL_LOGIN’, true); // Secure user registration/login forms after installing valid SSL define(‘FORCE_SSL_ADMIN’, FORCE_SSL_LOGIN); // Secure WordPress admin dashboard /** Site Domain */ … Read more

iHow to redirect all http traffic to https now that a SSL certificate is added?

You can replace your URLs in PHPMyAdmin instead – make sure you have backed up your database though. You’d need to change this code and run it: UPDATE wp_posts SET guid = replace(guid, ‘http://www.old-url.co.uk’,’https://www.new-url.co.uk’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.old-url.co.uk’, ‘https://www.new-url.co.uk’); You might be able to bypass this step if you have a secure … Read more

Page permalinks are http but show up as https?

Try this in your wp-config.php define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); This basically hard-codes the WordPress options for siteurl and home, which will means WordPress will redirect all requests to those URLs. This won’t change any permalinks in any content that you have in your site — to do this I’d recommend using a plugin like WP Migrate DB … Read more

What are some best practices to clean up http mix content warnings?

From your screenshot, it looks like you are displaying images from another website (nga.gov), for example: http://images.nga.gov/?service=asset&action=show_preview&asset=120079 After checking out the links with the mixed content warning, I can see that SSL is set up for this website, which is good. However, their links still default to HTTP, for whatever reason. To fix this on … Read more

Generate all urls with https

This sounds like a bug in the plugin, and they should fix it. But if they don’t, you can always add a filter to home_url and change all http:// to https:// like so: add_filter( ‘home_url’, ‘wpse_259675_home_url’, 1000, 4 ); function wpse_259675_home_url( $url, $path, $orig_scheme, $blog_id ) { return str_replace( ‘http://’, ‘https://’, $url ); }