How to do this unique 301 redirect (Read inside)

Discussion in 'Search Engine Optimization' started by samdar, Oct 9, 2011.

  1. #1
    Here is my case and here is what I tried. Please suggest how to over come this.

    Case:
    I have to redirect mysite.com/abc1.asp, mysite.com/abc2.asp, mysite.com/abc3.asp and similarly till mysite.com/abc200.asp to mysite.com

    That is to redirect some older sequence page to home page.

    What I tried:
    I tried this in cpanel and it didnt work.

    301 redirect
    From page: Tried the following
    mysite.com/ab*
    mysite.com/abc???.asp
    mysite.com/ab*.asp

    to mysite.com

    But none of this has worked. Can you help me with the wildcard to use in this scenario?
     
    samdar, Oct 9, 2011 IP
  2. seocoast

    seocoast Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    where in cpanel have you placed it? try working with the 301 redirect code via .htaccess
     
    seocoast, Oct 9, 2011 IP
  3. Alishathomas

    Alishathomas Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You have to do this redirection throug IIS file which is on the root directory.
     
    Alishathomas, Oct 9, 2011 IP
  4. samdar

    samdar Well-Known Member

    Messages:
    1,069
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #4
    There is an option called Redirect in cpanel. I did through this. It generates the required htaccess code. Its not a big difference.

    Did you read the question properly? I need instruction to redirect with that use case.
     
    samdar, Oct 9, 2011 IP
  5. samdar

    samdar Well-Known Member

    Messages:
    1,069
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    150
    #5
    How do I do that? That is the question. Dont simply answer for the sake of increasing your post count. If you know real answer please respond.
     
    samdar, Oct 9, 2011 IP
  6. Profitable Websites

    Profitable Websites Greenhorn

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #6
    Try this... add this to your .htaccess file in your root web folder:

    More info at: http://superuser.com/questions/155139/htaccess-301-redirect-with-regular-expressions

    or google: http://www.google.com/search?ie=UTF-8&q=301+redirect+htaccess+wildcard+regular+expression
     
    Profitable Websites, Oct 9, 2011 IP