Help!!! I want to redirect 301 1,500 webpages

Discussion in 'HTML & Website Design' started by ainmohd, May 18, 2008.

  1. #1
    I need to tranfer about 1,500 webpages to another website.

    I'm using the usual "redirect 301 oldpage http://newpage" but not working.

    Because too pages webpages?

    Please assist. Thanks.
     
    ainmohd, May 18, 2008 IP
  2. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    put this in your .htaccess:

     
    Ulquiorra, May 18, 2008 IP
  3. ainmohd

    ainmohd Peon

    Messages:
    1,515
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ulquiorra,

    I'm not tranfering the whole site. About 75% (and three folders) of the webpages of the old website.

    Thanks.
     
    ainmohd, May 18, 2008 IP
  4. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Were you trying to individually transfer each page before?

    If you have something that can mass replace text in the html/php/xml/whatever files, try replacing:

    with:

    Assuming you have a head tag, and the patience.
     
    Ulquiorra, May 18, 2008 IP
  5. ainmohd

    ainmohd Peon

    Messages:
    1,515
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I did:

    AddHandler server-parsed .htm
    AddHandler server-parsed .html

    redirect 301 /expired-domains/articles/Traffic-Using-Expiring-Domains.htm http://domainnameszone.net/articles/Traffic_Using_Expiring_Domains.htm
    redirect 301 /expired-domains/01-01-2007.html http://domainnameszone.com/expired-domains/01-01-2007.html
    redirect 301 /expired-domains/01-01-2007_Page_1.html http://domainnameszone.com/expired-domains/01-01-2007_Page_1.html
    redirect 301 /expired-domains/01-01-2007_Page_2.html http://domainnameszone.com/expired-domains/01-01-2007_Page_2.html
    redirect 301 /expired-domains/01-01-2007_Page_3.html http://domainnameszone.com/expired-domains/01-01-2007_Page_3.html
    redirect 301 /expired-domains/01-01-2007_Page_4.html http://domainnameszone.com/expired-domains/01-01-2007_Page_4.html
    redirect 301 /expired-domains/01-01-2007_Page_5.html http://domainnameszone.com/expired-domains/01-01-2007_Page_5.html
    redirect 301 /expired-domains/01-01-2007_Page_6.html http://domainnameszone.com/expired-domains/01-01-2007_Page_6.html
    redirect 301 /expired-domains/01-12-2006.html http://domainnameszone.com/expired-domains/01-12-2006.html
    redirect 301 /expired-domains/01-12-2006_Page_1.html http://domainnameszone.com/expired-domains/01-12-2006_Page_1.html

    and 1,500 more lines.

    "redirect 301 /expired-domains/articles/Traffic-Using-Expiring-Domains.htm http://domainnameszone.net/articles/Traffic_Using_Expiring_Domains.htm" works but not the rest.

    If you click http://bestwebsites.com.my/expired-domains/articles/Traffic-Using-Expiring-Domains.htm you will access http://domainnameszone.net/articles/Traffic_Using_Expiring_Domains.htm

    I can't use "<meta http-equiv="Refresh" content="0; url=http://www.newurl.com/page.html" />" because many of the old webpages are getting more than 1,000 hits each per month and I want the new webpages (same contents) to have the same ranking. I'm talking about a total of 100,000 hits per month.
     
    ainmohd, May 18, 2008 IP
  6. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    First add this line at the top (Make a backup, just in case):

    Then use notepad's search & replace function and do this:

    Search for:

    Replace with:

    Then search for:

    Replace with:

    Finally search for .html, and replace with:

    This should work at least if the url is entered without http://www.
    For the rest you will have to add more lines...
     
    Ulquiorra, May 18, 2008 IP
  7. ainmohd

    ainmohd Peon

    Messages:
    1,515
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ulquiorra,

    I will try. Thanks.
     
    ainmohd, May 18, 2008 IP