Hello Friends,
Hope you are doing well.
In this post, I will show you how you can easily set the redirection from HTTP to HTTPS of a website in Linux Apache server.
The step is really very simple and it will take only 2 sec to set it. This post is really helpful, if you do not have any control panel and want to set the redirection quickly.
To set the redirection, you need to add the below code in the .htaccess file.
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.beanexpert.co.in/$1 [R,L]
Replace “beanexpert.co.in” with your required domain name. Save the file and you are all set.
Please try this and let me know if you face any issue in setting this.
- Note: The above redirection code will only work if your site is listening to port 80
Thank you. 🙂
Hello,
I love cooking. Yes ! you read it right. I love cooking however I am fond of writing technical blogs too.
I work as a Cloud Developer Support Engineer II at DigitalOcean.
I hope my articles helps you to sail out from the Ocean of the technical problems. Also on other hand helps to take a deep dive into different type of technologies.
Powered by Facebook Comments
Leave a Reply