MSimms Posted November 1, 2024 Posted November 1, 2024 Hi, I wonder if you could guide me through how to redirect my non-SSL traffic to the SSL site? TIA Quote
TCH-Antonyo Posted November 1, 2024 Posted November 1, 2024 Hi, You can redirect HTTP traffic to HTTPS using the .htaccess file. The below code, when added to a .htaccess file, will automatically redirect any traffic destined for http: to https: ~~~~~~~~~~~~~~~~~~~~~~~~ RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] ~~~~~~~~~~~~~~~~~~~~~~~~ However, if you are using Wordpress CMS, you should change the site URL from http://domainname.com to https://domainname.com on the WordPress admin panel, navigate to Settings >> General and change the WordPress Address (URL) and Site Address (URL) with HTTPS. Also you should change all installed plugins and themes url from http to https. Better you may install a plugin called really-simple-ssl https://wordpress.org/plugins/really-simple-ssl/ it will simply convert everything from http to https and revert it. If you encounter any issues please do not hesitate to open a ticket request Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.