Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a SSL certificate and https plugin which both work fine along with changing the Settings in the Wordpress menu to https but I have to manually enter 'https' to see the Secure version, is there a way to make the home page force, or even better become https?

share|improve this question

3 Answers 3

Change the site URL to use SSL for the entire site including home page.

share|improve this answer
1  
Still does not force http –  user1370288 Jul 11 '12 at 10:39
    
@user1370288 "still does not force http" Do you want to force http or https? If the above step didn't work, please check your log and please check the .htaccess file of your site to troubleshoot from there. –  Pothi Jul 11 '12 at 13:30

You can redirect the visitor to your SSL site using the following code (untested, may need ajusted):

function wpse58098_template_redirect() {
    if ( !is_ssl() ) {
       wp_redirect( 'https://www.mysite.com' );
    }
}
add_action( 'template_redirect', 'wpse58098_template_redirect' );
share|improve this answer

There is a plugin currently I'm using for my one of the wordpress site. WordPress HTTPS (SSL) ( plugin has option to forse SSL for all. )

I personally recommend this plugin because,

Whenever you use ssl for webpages it becomes necessary to load all of its content from secured (Encrypted) servers, Otherwise It'll show a warning of partially encrypted/mixed content error to user.

The problem occurs when you link to external content such as JavaScript or Images, That plugin solve it by storing those external content to your own SSL secured server.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.