kjt
New Member
Howdy folks,
This might be a stupid question but I trying to figure out how to do a 301 redirect on the whole domain from http://www.thisisafakedomain.ie to http://thisisafakedomain.ie
Does anybody know how to do this? I've found the code for the opposite way:
Thanks in advance!
This might be a stupid question but I trying to figure out how to do a 301 redirect on the whole domain from http://www.thisisafakedomain.ie to http://thisisafakedomain.ie
Does anybody know how to do this? I've found the code for the opposite way:
Code:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]