This article assumes you want to redirect a www version of a domain (e.g. www.sushilkumar.ind.in) to the non-www root domain (e.g. sushilkumar.ind.in) with HTTPS, and using Amazon S3 static site redirect and CloudFront. Introduction Before we start, there are a few important notes to keep in mind: In order to …
Read More »Blog Archives
Redirect www to non-www and HTTP to HTTPS on Apache Server
The increasing adoption of HTTPS as the default connection protocol for websites has introduced a few new challenges to developers and system administrators, such as the need to consolidate a canonical domain by redirecting non-HTTP sites to HTTPS, in addition to redirecting www to non-www host name (or vice-versa). Introduction …
Read More »Apache .HTACCESS REWRITE RULES
#301 Redirects for .htaccess #Redirect a single page: Redirect 301 /pagename.php http://www.domain.com/pagename.html #Redirect an entire site: Redirect 301 / http://www.domain.com/ #Redirect an entire site to a sub folder Redirect 301 / http://www.domain.com/subfolder/ #Redirect a sub folder to another site Redirect 301 /subfolder http://www.domain.com/ #This will redirect any file with the …
Read More »