Blog Archives

Amazon S3 or CloudFront redirect www to non-www and HTTP to HTTPS

This article assumes you want to redirect a www version of a domain (e.g. to the non-www root domain (e.g. 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 »

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 »


#301 Redirects for .htaccess #Redirect a single page: Redirect 301 /pagename.php #Redirect an entire site: Redirect 301 / #Redirect an entire site to a sub folder Redirect 301 / #Redirect a sub folder to another site Redirect 301 /subfolder #This will redirect any file with the …

Read More »