Redirect to www
History /
Edit /
PDF /
EPUB /
BIB /
Created: June 4, 2006 / Updated: November 2, 2024 / Status: unknown / 1 min read (~88 words)
Created: June 4, 2006 / Updated: November 2, 2024 / Status: unknown / 1 min read (~88 words)
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^your-domain-here\.com
RewriteRule ^(.*)$ http://www.your-domain-here.com/$1 [R=permanent,L]
This code placed in your .htaccess will give you the possibility to send any visitor coming to your-domain-here.com to www.your-domain-here.com. This has a great advantage especially with search engines because all your pages will be referenced under the same "subdomain" as if you had both, you'd get www.your-domain-here.com links and your-domain-here.com links which would count as different pages.