How To Force WordPress with SSL Connection
Below will be the steps to guide users to force WordPress with https:// connection.
1. Login into the WordPress admin dashboard. eg: www.YOURDOM AIN.com/wp-admin
2. Select Settings-> 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 1 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 ^(.*)$ [R,L]
</IfModule>
Done!
NOTE: Please change YOURDOMAIN.com to the user’s own domain. Example: For mondoze.com, YOURDOMAIN.com will change to mondoze.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 seem there are some image or post link URL might still referring to http://. Regarding this issue, the user may alias with the web developer to check on the connection or may search for WordPress plugins to fix the issue.
NOTE3: Hosting under a Linux environment had been enabled with auto-SSL. For a user under Windows, the user will be required to purchase SSL for the hosting.