WordPress HTTPS is intended to be an all-in-one solution to using SSL on WordPress sites.
To make your entire website secure, you simply need to change your home url and site url to use HTTPS instead of HTTP. Please read how to change the site url.
In the Publish box on the add/edit post screen, a checkbox for 'Force SSL' has been added to make this process easy. See Screenshots if you're having a hard time finding it.
Go to /wp-content/plugins/wordpress-https/wordpress-https.php and uncomment (remove the two forward slashes before) the line below, or go to your wp-config.php file and add this line. Hit any page on your site, and then remove it or comment it out again.
define('WPHTTPS_RESET', true);
If you're using a public/shared SSL, try disabling your custom permalink structure. Some public/shared SSL's have issues with WordPress' permalinks because of the way they are configured.
To identify what is causing your page(s) to be insecure, please follow the instructions below.
For each item that is making your page partially encrypted, you should see an entry in the console similar to "The page at https://www.example.com/ displayed insecure content from http://www.example.com/." Note that the URL that is loading insecure content is HTTP and not HTTPS.
Most insecure content warnings can generally be resolved by changing absolute references to elements, or removing the insecure elements from the page completely. Although WordPress HTTPS does its best to fix all insecure content, there are a few cases that are impossible to fix.
Yes! Here is an example of how to use the 'force_ssl' hook to force a page to be secure.
function custom_force_ssl( $force_ssl, $post_id ) {
if ( $post_id == 5 ) {
return true
}
return $force_ssl;
}
add_filter('force_ssl' , 'custom_force_ssl', 10, 2);
You can also use this filter to filter pages based on their URL. Let's say you have an E-commerce site and all of your E-commerce URL's contain 'store'.
function store_force_ssl( $force_ssl, $post_id ) {
if ( strpos($_SERVER['REQUEST_URI'], 'store') !== false ) {
$force_ssl = true;
}
return $force_ssl;
}
add_filter('force_ssl', 'store_force_ssl', 10, 2);
Requires: 3.0 or higher
Compatible up to: 3.4
Last Updated: 2012-5-2
Downloads: 65,015
3 of 32 support threads in the last three weeks have been resolved.
Got something to say? Need help?