Archive

Posts Tagged ‘redirection’

.htaccess redirect domain.com to www.domain.com

October 28th, 2013 No comments

In the. htaccess file place the following two lines:

rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Instead “domain.com” set your domain

Categories: Web Tags: ,