Main Website RSS FeedCurrent Article

Force WWW on your Domain / URL

Because i’ve been getting queries from search engine from someone who want his domain name always use the www version instead of non www version, i decided to post it again. Well although i’ve already write about this before, but it seems for some people they don't know which part is the force www.

And because i’ve already explained it before, i'm not going into much detail and don't forget to put this in your .htaccess file :

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} !^www\.your-domain-name\.com  [NC]
RewriteRule ^(.*)$ http://www.your-domain-name.com/$1 [R=301,L]
</IfModule>

That’s it, and you’re finished, and as a side note you should choose to use only the www or non www version of your domain name, because Google doesn't like duplicate content on same website / domain name. ;)

1 Trackback(s)

  1. From SEO (Search Engine Optimization) for Wordpress by Reaper-X .:[ ID ]:. | Mar 8, 2007

RSS Feed for This PostPost a Comment

Line and paragraph breaks automatic, e-mail address never displayed, avoid using spammy words or phrases to prevent your comment from going into the oblivion, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>