How to force WordPress with SSL connection

Below will be the steps to guide user to force WordPress with https:// connection.


1. Login into WordPress admin dashboard. eg: www.YOURDOMAIN.com/wp-admin


2. Select Settngs-> General


3. Under WordPress Address (URL) and Site Address (URL) update user domain to         https://www.YOURDOMAIN.com.  The page will be as below:



4. Save.



Now one last step to complete the process. Open hosting .htaccess file and update the below code: 


<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://www.YOURDOMAIN.com/$1 [R,L]

</IfModule>



<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.YOURDOMAIN.com/$1 [R,L]
</IfModule>



Done!


NOTE: Please change YOURDOMAIN.com to user own domain. Example: For exabytes.com, YOURDOMAIN.com will change to exabytes.com.


Proceed to clear browser cache and browse the website as the WordPress webpage will automatically redirect with https:// connection page.


NOTE2: User might face "Not Secure" upon redirect to https:// webpage as it may seems there are some image or post link url might still referring to http://. Regarding this issue, user may alias with web developer to check on the connection or may search for WordPress plugins to fix the issue.


NOTE3: Hosting under Linux environment had been enabled with auto-SSL. For user under Windows, user will required to purchase SSL for the hosting. 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.