One Redirect Question....

Discussion in 'Search Engine Optimization' started by Jesica, May 22, 2008.

  1. #1
    Jesica, May 22, 2008 IP
  2. fri3ndly

    fri3ndly Active Member

    Messages:
    111
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    You need to use a 301 redirect:

    http://www.webconfs.com/how-to-redirect-a-webpage.php

    Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
    The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^domain.com [nc]
    rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 
    Code (markup):
    Please REPLACE domain.com and www.newdomain.com with your actual domain name.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled
     
    fri3ndly, May 22, 2008 IP
  3. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Place this in your .htaccess file

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

    Obviously, change the url to your address.

    There is also a feature in Google Webmaster Tools to allow you to specify www. at the beginning of your url...

    As for counting as two websites... I don't know, but it's good to specify one or the other url for the search engines...

    Edit: beaten to it!
     
    Divisive Cottonwood, May 22, 2008 IP
  4. Jesica

    Jesica Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4



    thanks for your reply.

    Yes I have a site which you can see in my signature and the main thing is that my site is cached by Google and the site is taken as http://graphicsinfoways.com now what should i do should i redirect it into http://www.graphicsinfoways.com or leave them as they are?
     
    Jesica, May 22, 2008 IP
  5. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Sorry, but this is the best redirect method SEO wise ;)

    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L] 
    
    Code (markup):
     
    astup1didiot, May 22, 2008 IP
  6. metalka

    metalka Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Check Matt Cutts blog about this issue:

    mattcutts.com/blog/seo-advice-url-canonicalization/
     
    metalka, May 22, 2008 IP