Web Development
Access your WordPress website through HTTPS connection
How to use your WordPress websites SSL certificate for connection through HTTPS?
If you want to set up an https connection for your website with an SSL certificate enabled, then the following steps can help you do this simply and quickly.
Set up WordPress to work through https
Log in as administrator to your WordPress website control panel and navigate to Settings > General. Find the field WordPress Address (URL) and change http:// to https:// . Finally click the Save Changes button at the bottom of the page. When you do this your visitors will be able to access your website with and without SSL.
Use only https (optional)
You have the option to make your website accessible only through https. The only thing you have to do is to add the following code to your website's .htaccess file:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R,L]
If your website is located in a subfolder then you will have to use the code below:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://example.com/folder/$1 [R,L]
