Old URL's... 301 redirects?

Discussion in 'Search Engine Optimization' started by dmi, Jun 26, 2008.

  1. #1
    Hi there,

    I've got a few questions:

    1. I have made a site like a year ago and all pages had their names in a form I didn't like (there are backlinks). Anyway, I'm about to change the URL's to SEO acceptable URLs and want to know what to do with these old pages? Delete them? Or should I do the 301 redirect?

    2. How to do a 301 redirect? Say, my old page is called www.site.com/stupidpagename.html and I want it to redirect to my new page which is called www.site.com/nicepagename.html. What should I do? What code to insert into .htaccess?

    Thank you very much in advance,
    dmi
     
    dmi, Jun 26, 2008 IP
  2. adacprogramming

    adacprogramming Well-Known Member

    Messages:
    1,615
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Definitely do 301s. Both for SEO reasons and to keep any traffic that might go to those pages.

    As to how you do it. That depends on if they are all HTML pages or PHP, asp etc. also depends on the hosting server.

    HTML is the hardest on a windows server, linux has httAccess (or something like that) that can rewrite the urls
     
    adacprogramming, Jun 26, 2008 IP
  3. dmi

    dmi Well-Known Member

    Messages:
    2,705
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Thanks for your answer.

    The hosting is Linux, they are HTML pages.
     
    dmi, Jun 26, 2008 IP
  4. ad1

    ad1 Peon

    Messages:
    238
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    htaccess is the easiest
     
    ad1, Jun 26, 2008 IP
  5. dmi

    dmi Well-Known Member

    Messages:
    2,705
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    140
    #5
    I know that, but how do I do it? What is the code I have to insert?
     
    dmi, Jun 26, 2008 IP
  6. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Use this code in your .htaccess file. Replace example.com and /oldpage.html /newpage.html with the paths to your site.

    
    Redirect 301 /oldpage.html http://www.example.com/newpage.html
    
    Code (markup):
    If you don't know how to make one, use this: http://www.htaccesseditor.com/en.shtml
     
    Dan Schulz, Jun 27, 2008 IP
  7. dmi

    dmi Well-Known Member

    Messages:
    2,705
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    140
    #7
    I figured it out. Thanks Dan.
     
    dmi, Jun 27, 2008 IP
  8. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You're welcome. Enjoy the rest of your vacation. :)
     
    Dan Schulz, Jun 27, 2008 IP
  9. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #9
    (OT) What is this "vacation" thing you speak of? :confused:
     
    astup1didiot, Jun 27, 2008 IP
  10. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Look in his signature.
     
    Dan Schulz, Jun 27, 2008 IP
  11. Bryce

    Bryce Peon

    Messages:
    1,235
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #11
    sig says he's on vacation :D
     
    Bryce, Jun 27, 2008 IP