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 ^(.*)$$1 [R,L]

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

Disk space & Traffic

Disk Space Everything related to your Web site is stored on disk: your regular html files,...

How-To prevent people from stealing your files & bandwidth (hotlink)

If you find that people are stealing your files or using your bandwidth tehn you can prevent this...

How can i upgrade or downgrade my Hosting?

Upgrading is a simple procedure from the Client Portal that you can do yourself at anytime. When...

What is the correct path for my Joomla logs ?

In the Global configurations under system you need to specify the full path to your log...

How to Redirect Non-WWW to WWW

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

Powered by WHMCompleteSolution