WordPress Community Forum
WordPress Support => Fixing WordPress => Topic started by: Chris on Feb 28, 2022, 01:55 AM
Hi,
I have enabled SSL for my website and now I want to redirect it to HTTPs. How can I do it? I don't want to mess up as website this website is live.
Thanks,
Hello,
You can follow the below procedure:
[1] Make sure that SSL is installed properly on your website.
[2] Update your URL from your WordPress Admin area -> Settings -> General
[3] If you are on Linux server with Apache, you can use .htaccess to force redirect HTTP to HTTPs using following .htaccess rule:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
For more information on force HTTPs redirection, you can refer Redirect HTTP to HTTPS rewrite rule (https://www.webhostingdiscussion.net/blog/redirect-http-to-https-rewrite-rule/) KB article.
- Kailash