How to make Wordpress work with SSL/HTTPS

If you’re adding SSL to your existing site, then you need to move all your Wordpress files from public_html to private_html and setup WordPress SSL redirect from HTTP to HTTPS.


1. First you need to make a copy of your .htaccess and upload it to your private_html folder.

2. Then edit the .htaccess in your private_html folder and you need to make the redirect by adding the following code in your .htaccess file.
Dont forget to change the domain name to your site.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]
</IfModule>

3. Last step is to move all your Wordpress folders and files to the private_html folder.

Was this answer helpful?

 Print this Article

Also Read

How to Redirect Non-WWW to WWW

The easiest way to redirect domain.com to www.domain.com on the url address bar whenever someone...

How to Redirect Non-WWW to WWW URLs in Joomla

he Problem When Search engines crawl your website they will consider http://bluebirdnet.ca and...

How do upload files to web space?

There are 2 methods available for doing this. The easiest and best method is to use a FTP client...

Running Scripts

If you are having troubles with Perl CGI or PHP scripts please read the following...

I cant connect to Canada Post sellonline.canadapost.ca

If you are setting up a Shipping account for Canada Post in your Shopping Cart and you are...

Powered by WHMCompleteSolution