301 Redirects with NON pretty url's

Discussion in 'Search Engine Optimization' started by Hughes1, Mar 31, 2009.

  1. #1
    Ok i have a site that i am moving...

    Old url's are:
    www.domain.com/category.asp?category_id=1
    www.domain.com/category.asp?category_id=2
    www.domain.com/category.asp?category_id=3

    new url's are
    www.newdomain.com/shop/item1
    www.newdomain.com/shop/item2
    www.newdomain.com/shop/item3

    So i need to write something in asp that will that will 301 redirect
    if url = "?category_id=1" redirect to www.newdomain.com/shop/item1
    if url = "?category_id=2" redirect to www.newdomain.com/shop/item2
    if url = "?category_id=3" redirect to www.newdomain.com/shop/item3
    else redirect to www.newdomain.com/index.asp

    I have googled this with no luck.
    Thanks for any help
     
    Hughes1, Mar 31, 2009 IP
  2. silvertone1000

    silvertone1000 Peon

    Messages:
    42
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is a "how to redirect" here
     
    silvertone1000, Mar 31, 2009 IP
  3. Hughes1

    Hughes1 Active Member

    Messages:
    106
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #3
    Yes, I understand how to redirect one page to another, But how to i redirect one page with strings in the url (so it's truly multiple pages) to different pages
     
    Hughes1, Mar 31, 2009 IP
  4. Hughes1

    Hughes1 Active Member

    Messages:
    106
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #4
    Hughes1, Mar 31, 2009 IP