Force https:// for q2a site

70 Likes Comment

Already installed SSL certificated for your website ( let’s encrypt or purchased SSL ). See how to force https:// via .htaccess file configuration.

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

One more step to complete your rule. Go to Question2Answer dashboard, modify the option Preferred site URL: https://yoursite.com . That’s right.

You might like

About the Author: Toc Xoan

This guy likes taking photos, hunting cheap tours, exploring the unique culture of every cities of Vietnam. Contact: [email protected]. I've created a dogecoin wallet to receive blog funding: DE6F5FisSCy7yz5rpHY1ChMSGYnDMpFZ1Q

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.