Is there a way to force SSL for all requests? Much like the option to use admin ssl, but for all requests, including the ones who are not logged in.
Leave a Reply
You must be logged in to post a comment.
Is there a way to force SSL for all requests? Much like the option to use admin ssl, but for all requests, including the ones who are not logged in.
You must be logged in to post a comment.
Here is a complete guide – Enable Complete support for SSL on WordPress
A simple check for
is_ssl()
should do it:But I would do this in .htaccess to catch images too:
For ISS see this answer on Stack Overflow.
Add this rule to the top of .htaccess:
This should be before WordPress’ rules.
I’ve used Really Simple SSL to my all of clients sites and it works very fine. If you dont want to modify code, simply install this plugin and config it.