Force SSL/TLS (HTTPS) with .htaccess

Google has announced that implementation of TLS (SSL) certificates benefit the web site owners and can boost SEO ranking of your website. Secure Sockets Layer (SSL) is the predecessor to Transport Layer Security (TLS). It is a misnomer that people call SSL and TLS are interchangeable. Simply put, as a website owner, what you should care about is that your website requests are served in HTTPS (port 443) rather than HTTP (port 80) with a valid certificate.

Continue reading Force SSL/TLS (HTTPS) with .htaccess

Redirect Domain to Include or Exclude www

This guide is based on the .htaccess file which is a directory-level configuration file supported by several web servers such as Apache web server. It is used for configuration of website resources such as URL redirection, URL shortening, access control, and more. The ‘dot’ before the file name makes it a hidden file in Unix-based environments. You can read more about this file at Wikipedia.

Using the .htaccess file in the main domain directory, you can either redirect all requests to sanuja.com or www.sanuja.com. This type of redirection is known as a HTTP 301 redirect.

Continue reading Redirect Domain to Include or Exclude www