301 redirect problem

Discussion in 'Search Engine Optimization' started by Nima, Jan 16, 2007.

  1. #1
    - I want to redirect all the pages in www.blacksburgpoker.com/gallery/ to pokereagles.com/poker-pictures/index.php

    How can I do that with 301 Redirects and my htaccess file?

    Thanks
    Nima
     
    Nima, Jan 16, 2007 IP
  2. thegypsy

    thegypsy Peon

    Messages:
    1,348
    Likes Received:
    109
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hey Nima.. how's it going?

    So what's the gig? What are we trying to do? Curious WHY the 'index.php' instead of the directory root?

    So you want all of the pages in the one directory forwarded to the root directory of the other? Not corresponding pages?
     
    thegypsy, Jan 16, 2007 IP
  3. oddcomments

    oddcomments Peon

    Messages:
    77
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Somebody correct me if I’m wrong, but I believe it is:

    
    # Redirect to the corresponding page
    RewriteEngine on
    RedirectMatch 301 /gallery/(.*) http://www.pokereagles.com/poker-pictures/$1
    
    Code (markup):
    Or
    
    # Redirect to the index.php
    RewriteEngine on
    RedirectMatch 301 /gallery/(.*)$ http://www.pokereagles.com/poker-pictures/index.php
    
    Code (markup):
     
    oddcomments, Jan 16, 2007 IP
    Nima likes this.
  4. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #4
    I want them directed to the directory, not the index.php itself, but i thought if I put that in, everyone would think I want them directed to corresponding page sin the new directory.

    The reason for that is, I was using Gallery Menalto for my previous gallery. Now, I'm just putting pictures in pages myself with no software, and the filing of it is completely different than what i used in my last webiste
     
    Nima, Jan 16, 2007 IP
  5. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #5
    oddcomments,
    you are my hero.
    THanks
     
    Nima, Jan 16, 2007 IP
  6. oddcomments

    oddcomments Peon

    Messages:
    77
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Awesome! I'm glad it worked for you!
     
    oddcomments, Jan 16, 2007 IP
  7. thegypsy

    thegypsy Peon

    Messages:
    1,348
    Likes Received:
    109
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Interesting Big N

    Are U needing to redirect EACH individual page to the new corresponding ones?

    Do they actually get search referrer traffic?
     
    thegypsy, Jan 16, 2007 IP
  8. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #8
    Almost all of my traffic is from Google (not much, its about 200 to 300 a day).

    So I'm redirecting every page to its correspondent page as long as possible.

    Cheers,
    Nima

    Ps. I read half of your SEO ebook. Seems good for both noobs and even higher levels. I will post a review of it once im done
     
    Nima, Jan 16, 2007 IP
  9. thegypsy

    thegypsy Peon

    Messages:
    1,348
    Likes Received:
    109
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Glad to hear it - I have had non-nOObs say they got a few tibits - so that works fer me!!

    Anyways - have you got this under control now? Let me know
     
    thegypsy, Jan 16, 2007 IP
  10. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #10
    Yea, the Redirect thing is working perfect (if thats what you were asking)...

    I'll be more than thankful to hear your opinion about the site in general. (both SEO and design wise)
    http://www.pokereagles.com/
     
    Nima, Jan 16, 2007 IP
  11. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #11
    I have another question.

    Now that i have redirected all related parts of my old site to the corresponding section of the new site, I have something else to worry about:

    - I want all the pages that don't have any 301 redirect associated with them, to be redirected to the homepage of the new website. Is that possible?

    - If it is not possible, how can I redirect the homepage of old site to the home page of the new site (without affecting the rest of the site)
     
    Nima, Jan 18, 2007 IP