1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need help with 301 redirect !

Discussion in 'Search Engine Optimization' started by dude91, May 9, 2009.

  1. #1
    Hello dpers

    I recently took an website evaluation test . I got a report .

    There was a clause I didn't understand.

    I would be glad if you people could help me out

    My Url Is www.dxbunderground.com

    could you have a look at the clause as mentioned below

    could some one guide me , what should I do ?
    to do this 301 redirection thing ?
     
    dude91, May 9, 2009 IP
  2. PeterA

    PeterA Guest

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dude first up what di dyou use to check your site? I want to have a go.

    And secondly I just did this this morning.

    Google will see these urls for example:

    www.abc.com
    abc.com
    abc..com/index.html
    etc

    All pointing to the same page which is okay. But the problem that I understand is that google only cares about URL's.

    So essentially you have 2,3,4 or whatever different URLS. Then apparently all your link juice and page rank gets divided amongst the URLS.

    SO its better to only have the one URL detected as the MAIN URL for google.

    I added a code to my .htaccess file in my main dir.
    Just use notepad and copy this text and save file as .htaccess

    Text to use:
    --------------------------------------------------------------
    # Redirect non-www urls to www
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^PUT YOUR URL IN HERE THAT YOU DON'T WANT [NC]
    RewriteRule ^(.*)$ http://www.PUT THE ONE YOU WANT IN HEREcom/$1 [R=301,L]
    ----------------------------------------------------------------
    Then if you need to do multiples of this just copy the last to bits like so. Make sure there are no spaces.
    ---------------------------------------------------------------
    RewriteCond %{HTTP_HOST} ^PUT YOUR URL IN HERE THAT YOU DON'T WANT [NC]
    RewriteRule ^(.*)$ http://www.PUT THE ONE YOU WANT IN HEREcom/$1 [R=301,L]
    RewriteCond %{HTTP_HOST} ^PUT YOUR URL IN HERE THAT YOU DON'T WANT [NC]
    RewriteRule ^(.*)$ http://www.PUT THE ONE YOU WANT IN HEREcom/$1 [R=301,L]



    This seemed to work for me.
     
    PeterA, May 9, 2009 IP
  3. dude91

    dude91 Well-Known Member

    Messages:
    1,049
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    173
    #3
    iT was website.grader.com
     
    dude91, May 9, 2009 IP
  4. shniager

    shniager Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I use this rule in htaccess file
    RewriteCond %{HTTP_HOST} ^site.com
    RewriteRule (.*) http://www.site.com/$1 [R=301]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
    RewriteRule ^index\.html$ http://www.site.com/ [R=301]
     
    shniager, May 9, 2009 IP
  5. dude91

    dude91 Well-Known Member

    Messages:
    1,049
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    173
    #5
    thanks people ;)
     
    dude91, May 9, 2009 IP
  6. technomart

    technomart Guest

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It was website.grader.com
     
    technomart, May 11, 2009 IP
  7. rashida

    rashida Active Member

    Messages:
    1,429
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #7
    rashida, May 11, 2009 IP
  8. twizzlers

    twizzlers Peon

    Messages:
    291
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I have the same question. Can't I just do this through cpanel? There is an option for permanent redirect, but everyone else seems to be changing/adding their htaccess and I'm kinda confused.

    my cpanel says this in the Redirect section:

    Type: Permanent (301)
    http://(www.)? / __________
    redirects to→ _______________
    www redirection: [check one] __ Only redirect with www. ___ Redirect with or without www. ___ Do Not Redirect www.
    [check]______Wild Card Redirect


    Not sure how to do this..
     
    twizzlers, May 14, 2009 IP
  9. amuthavalli

    amuthavalli Peon

    Messages:
    110
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    amuthavalli, May 14, 2009 IP
  10. omhl

    omhl Active Member

    Messages:
    631
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    80
    #10
    cpanel is bad for redirections.

    use htaccess
     
    omhl, May 26, 2009 IP
  11. twizzlers

    twizzlers Peon

    Messages:
    291
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ^could you elaborate on why cpanel is bad for redirections?
     
    twizzlers, May 26, 2009 IP
  12. sam_h

    sam_h Peon

    Messages:
    188
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    may i just add something to this....

    if say you are a blogger, and you want to place a 301 redirect on your blog and all it's posts and point it to a new domain, how do you do that?
     
    sam_h, May 28, 2009 IP