Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Make sure that you have WordPress properly setup following this guide: https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/

    Radu

    (@broseph)

    Hello!

    Don’t try plugins because, yes, they do mess things up most of the time.

    After you followed the guide above, you’ll also need to perform a redirect in .htaccess from HTTP to HTTPS. From my experience, different servers accept different codes, but I’ll give you two that usually work most of the time. Only use one.

    Don’t try these if you are on an Nginx server. These are for Apache, which most hosting companies use.

    
    RewriteEngine On 
    RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain\.com [NC]
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

    or

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]

    Before doing this, backup your .htaccess file by downloading it to your computer.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTTP to HTTPS’ is closed to new replies.