301 Redirect for idiots - Advice please

Discussion in 'Search Engine Optimization' started by CCK, Jan 6, 2011.

  1. #1
    Please explain this in simple terms for me.

    I have a site with several internal pages that rank quite well. I am switching to a new database site that will change url of internal pages.

    www.mysite.com/widgets.asp
    will become
    www.mysite/widgets.aspx

    I know i need a 301 redirect but how is this done and when do I put the command?

    Thanks in advance
    An idiot.
     
    CCK, Jan 6, 2011 IP
  2. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #2
    Probably a simple rule would suffice:

    
    RewriteRule (.*).asp$ $1.aspx [R=301,L]
    
    Code (markup):
    I don't know if that's the most efficient way.
     
    jitendraag, Jan 6, 2011 IP
  3. iresh

    iresh Peon

    Messages:
    127
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you need to put this
     
    iresh, Jan 6, 2011 IP
  4. internetproz

    internetproz Peon

    Messages:
    136
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if i use this code will google penalize me?
     
    internetproz, Jan 6, 2011 IP
  5. CCK

    CCK Active Member

    Messages:
    910
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #5
    CCK, Jan 7, 2011 IP
  6. CCK

    CCK Active Member

    Messages:
    910
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #6
    CCK, Jan 7, 2011 IP
  7. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #7
    That will be PAINFUL :D
    
    RewriteRule ^widgets.asp$ widget-solutions.aspx [R=301,L]
    
    Code (markup):
    Do that for every page ;-)

    Warning: untested code !!

    Yeah, mysite, yoursite, domain.com, test.com and google :)) they all get lots of free links.
     
    jitendraag, Jan 7, 2011 IP
  8. CCK

    CCK Active Member

    Messages:
    910
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #8
    Not too painful. Site has about 10 key pages that are important for SEO purpose.

    So i create some code but where do i put it???
     
    CCK, Jan 7, 2011 IP