un-loading https

Not tested, but give it a shot: function my_em_force_ssl() { if ( ! is_ssl() && em_is_event_page() ) { wp_redirect( str_replace( ‘http:’, ‘https:’, get_permalink() ) ); exit; } elseif ( is_ssl() && ! em_is_event_page() && $_SERVER[‘REQUEST_METHOD’] === ‘GET’ ) { wp_redirect( str_replace( ‘https:’, ‘http:’, add_query_arg( $_GET, site_url( $GLOBALS[‘wp’]->request ) ) ) ); exit; } } add_action( … Read more

Search and replace http:// links to https:// to get the green padlock

I’ve experienced this problem in the past. In my opinion, the easiest way is by making use of the plugin: https://wordpress.org/plugins/search-and-replace/ Always perform a backup of your database before performing a search and replace. Make sure you do a “Dry Run” first. If you do not already have good backup procedures in place, check out … Read more

What is the right way to redirect all traffic to HTTPS?

Number 1 If you want your website to be ONLY accessible through HTTPS, you will want to add this piece of code to your .htaccess file, replacing your domain’s name: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L] </IfModule> This will redirect any visits from non-SSL to SSL version of your website. … Read more

XML asset fails to load using https

In case this helps anyone in the future: The problem was not a WordPress issue, it was a server configuration issue. Useful explanation on checking which stream wrappers are enabled on your server (used this to make sure https was enabled on my server) Enable Stream Wrappers Someone with the same issue found that their … Read more

Cloudflare and SSL breaks wordpress – Mixed Content & Unable to use Admin

You need to install these two plugins. CloudFlare Flexible SSL – https://wordpress.org/plugins/cloudflare-flexible-ssl/ Really Simple SSL- https://wordpress.org/plugins/really-simple-ssl/ After both the plugins are installed and activated, you will get a message at the top of your dashboard to activate SSL. Click on activate and you are done. You will be logged out. Because your domain has changed … Read more

After installing ssl certificate images won’t show

I suppose you have Adaptive Images plugin installed? The author suggests for now: Can you check if the urls in your admin Settings > General page do contain the “https” instead of “http”? They should contain the “https” and (sorry about this inconvenience) you need to update your Adaptive Images settings one more time after … Read more

Preserve Domain Alias

You need to set the canonical hostname (ie. with www) in the WordPress dashboard… Under Settings > General and set the appropriate “WordPress Address (URL)” and “Site Address (URL)” properties. Alternatively, these values can be hardcoded in wp_config.php by defining the WP_HOME and WP_SITEURL constants respectively. Reference: https://codex.wordpress.org/Changing_The_Site_URL SSLOptions +StrictRequire SSLRequireSSL SSLRequire %{HTTP_HOST} eq “example.com” … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)