301 redirect: multiple pages redirecting to a single page

Discussion in 'Search Engine Optimization' started by JackFlash444, Feb 25, 2008.

  1. #1
    wondering if anyone could help me out here. I'm trying to set up a catch all 301 redirect. Basically i have a blog with many different entries

    x.com/blogentry1
    x.com/blogentry2
    x.com/blogentry3
    x.com/blogentry4
    etc.


    I want them all to redirect to y.com not y.com/blogentry1

    Thanks!
     
    JackFlash444, Feb 25, 2008 IP
  2. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #2
    You need to create a new entry in .htaccess for every URL your going to redirect.

    
    Redirect 301 [COLOR="Red"]/old/blog/post-url.html[/COLOR] [COLOR="DarkGreen"]http://www.newsite.com/newpage.html[/COLOR]
    
    Code (markup):
    This is your old URL, do not include http://www.domain.com/

    This is the URL to redirect to.
     
    astup1didiot, Feb 26, 2008 IP
  3. JackFlash444

    JackFlash444 Peon

    Messages:
    43
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thats what i'm trying to avoid, im redirecting a lot of pages that do not exist anymore but still have links pointing at them. I need some sort of catch all redirect. Any ideas?
     
    JackFlash444, Feb 26, 2008 IP
  4. Marx

    Marx Peon

    Messages:
    841
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have this same problem, would really like solutions as making separate entries for all the urls's will be a mission ;)
     
    Marx, Feb 27, 2008 IP