Jhero23
  • 1

how to force your wordpress website to https

  • 1

I’ve that Google rewards site owners that put their entire site behind HTTPS. How true this is, I don’t know, but in any case I will show you how to do that now

Share

1 Answer

  1. In your WordPress administrator dashboard, go to Settings -> General and change both URLs to have https:// rather than http://. It will look something like below:

    you might also need to update your .htaccess file in your cpanel. If you can find this file in your root folder, go to seetings in cpanel and show hidden files

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

     

    • 0

You must login to add an answer.