Posts

Showing posts with the label rewrite rules

How to Write Redirect Rules for HTTP to HTTPS in Apache using .htacess

HTTP vs HTTPS HTTP (HyperText Transfer Protocol) is the most basic and known protocol (a standard set of rules) used to transfer data from a web server to a browser. It allows communication between different systems. HTTPS is HTTP with encryption i.e it uses encryption (TLS/SSL) to make HTTP requests more secure while transferring the data from a web server to a browser or vice-versa.  So there are benefits of using HTTPS for your website: 1. It makes your website more secure against data theft. 2. It also improves your SEO rank. So now let's learn how we can direct a website from HTTP to HTTPS. First, make sure you have generated and integrated SSL certificate for your website and the Rewrite module is enabled on your hosting server. so that your website can work on HTTPS without any trouble. After applying the SSL certificate our website can be accessed via HTTP or HTTPS. But per above after knowing the benefits of HTTPS we need redirect HTTP to HTTPS. ...