For a website or web application user to access the website with or without "www" (e.g. techdasher.com or www.techdasher.com) for same page. It will be consider as "duplicate content". Due to this website rank to be drop. The advantage of redirecting a website -> An unique website url avoid to split the page rank. -> Website
htaccess
Redirect http to https using htaccess
Browsing your site over secure connection (HTTPS). One of the easy way to redirect the user to secure connection can be done by using .htaccess. The sample code for Redirect http to https using htaccess as follow RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]