content block https from http
content block https from http
content block https from http
According to documentation, get_stylesheet_directory_uri() should check for SSL while retrieving the theme directory url. Try exchanging <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/307203/<?php bloginfo(“template_directory’); ?>/icons/favicon.ico”> to <link rel=”shortcut icon” href=”https://wordpress.stackexchange.com/questions/307203/<?php echo get_stylesheet_directory_uri(); ?>/icons/favicon.ico”> in your header.php file.
It depends on how you included these scripts on your website. Did you include them directly on your theme files (i.e. footer.php, header.php) or did you use wp_enqueue_script on your functions.php? In the first case, you have to manually update these script URLs to https while please make sure you’ve updated your WordPress and Site … Read more
I have solved similar problems by running a search and replace plugin. That way you can query the database and make it change all the http:// entries to https://.
Although the answer in the comment to your question will work (here it is formatted), there are some variations that might be needed depending on your hosting environment, so contact your hosting support for specifics. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
I would recommend NOT forcing HTTPS quite yet. Instead, remove all that stuff in wp-config.php and in the .htaccess. Then, login to WordPress making sure you’re using the HTTPS link. If you can login, then you now know you can login as both HTTP and HTTPS. Then, you can force HTTPS. If you can login … Read more
Try to set these settings in your wp-config.php: define(‘WP_SITEURL’, ‘https://example.org’); define(‘WP_HOME’, ‘https://example.org’); Where https://example.org – your new domain
The reason why my website was still redirecting to HTTPS was because of a plugin. The plugin was disabled, by emptying the database cell which contains the “active plugins”, but still it was overruling every WordPress setting so it seemed. Every setting in wp-config.php which should overrule database settings or disabling/removing cache, didn’t worked out. … Read more
I like a simple, all-purpose htaccess to enable https on all site requests: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] In addition, go into Network Admin, Sites, then Edit each site, then the Settings tab for each site. Change all occurences of http to https for your site. (Some plugins may have the … Read more
Alright, I just found out. I needed to define https:domain.ext// in the general settings of the wordpress site. Now All in One Security use the https to rename the url.