[ad_1]
I’m looking for a code snippet I can use in htaaccess that will ensure anyone coming from an http/www URL gets routed to https/non www URL. Any help appreciated. Thanks!
[ad_2]Copyright © 2020 - 2022, Project DMC - WordPress Tutorials for Beginners- All Rights Reserved. Privacy Policy
Using a Code Snippet is not necessary.
​
1. Go to Settings > General
2. Switch the URLS to https:// instead of http://
Make sure you have SSL supported through your hosting panel, preferably cPanel AutoSSL (do this first).
Make sure Force HTTPS Redirect is also enabled in your cPanel.
Set this up on your DNS. Cname www then enter the main url.
Make sure the settings url on the site is WITHOUT www.