301 Permenant Redirect

Discussion in 'White Hat SEO' started by alezla, Dec 11, 2008.

  1. alezla

    alezla Newbie

    Joined:
    Oct 8, 2008
    Messages:
    10
    Likes Received:
    1
    I find it funny that when setting up new wordpress blogs, it automatically sets the address of the website as a no-www domain, however i am having problems changing some of my domains from no-www domains to www domains. Any suggestions? How can I do it after my sites are live? Also can I do this through cpanel, I have tried this code in the htaccess file

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^yourdomain.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

    but nothing seems to happen. I am already starting to notice search engines thinking my addresses are two different domains. I even have a different number of backlinks for each variation of the domains? Help anyone? Thanks in advance.
     
  2. wwwyatt

    wwwyatt Newbie

    Joined:
    Nov 5, 2008
    Messages:
    33
    Likes Received:
    2
    cpanel has redirect options...that's how i do my 301's. It's kind of tricky with wp blogs cause they will cause redirect loops sometimes. If it's already live i'd just leave it without.
     
  3. alezla

    alezla Newbie

    Joined:
    Oct 8, 2008
    Messages:
    10
    Likes Received:
    1
    Yeah that's exactly the problem, I get loop errors.