New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
HighPulsePoker.com Affiliate Program
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default .htaccess Makes No Sense

    Some of my pages are working with the 301 redirect, while others are not.

    This was the OLD url...

    http://www.onlinepokersitereviews.or...it-bonus-code/

    This is the NEW url...

    Doyles Room Bonus Code | Doyles Room Promo Code

    This is the 301 redirect in my .htaccess...

    redirect 301 /bonus-codes-2/doyles-room-deposit-bonus-code/ Doyles Room Bonus Code | Doyles Room Promo Code

    This is what Google redirects to...

    http://www.onlinepokersitereviews.or...it-bonus-code/

    Which is not a page at all.

    Why when I said it should redirect to bonus-codes/doyles-room does it add "deposit-bonus-code" to the end?

    This makes no sense. Google is obviously picking up the 301, but is sending it to a page I never even typed anywhere.

    ???


    EDIT: It is doing same on other pages in other sub folders as well.

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    Figured it out.

    redirect 301 /bonus-codes-2/ Bonus Codes | Coupon Codes | Referral Codes | Signup Codes

    That line was forcing the 301 to ignore the end of each URL.

  3. #3
    CK
    CK is offline
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    ?
    Posts
    2,226
    Blog Entries
    2
    Feedback Score
    35 (100%)

    Default

    Quote Originally Posted by jdwanchalk View Post
    Figured it out.

    redirect 301 /bonus-codes-2/ Bonus Codes | Coupon Codes | Referral Codes | Signup Codes

    That line was forcing the 301 to ignore the end of each URL.
    Well you half figured it out When you use a rule for the root file and place it above the rule for the files within that directory, it will overwrite your other rules. Make sense? So in the example above, you would need to place that rule below your other rules for them to work properly.

    and yes rewrites suck, fortunately you don't have hundreds of them to do.
    ----------------------------------------
    Everyone says they are willing to do whatever it takes to get ahead - but yet there are so few people up at 5AM ? - Robert Herjavec
    ---------------------------------------

  4. #4
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    USA
    Posts
    2,902
    Feedback Score
    15 (100%)

    Default

    Quote Originally Posted by Kaus View Post
    Well you half figured it out When you use a rule for the root file and place it above the rule for the files within that directory, it will overwrite your other rules. Make sense? So in the example above, you would need to place that rule below your other rules for them to work properly.

    and yes rewrites suck, fortunately you don't have hundreds of them to do.
    Just about 100, and it still sucked haha.


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. SENSE OF HUMOUR
    By pomp in forum PAL Coffee Shop
    Replies: 2
    Last Post: 01-09-2010, 04:36 PM
  2. Help your neighbor - Why promoting other people's websites makes sense.
    By NickM in forum General Poker Affiliate Forum
    Replies: 23
    Last Post: 10-24-2009, 04:49 PM
  3. What makes a good company great?
    By ianw in forum General Poker Affiliate Forum
    Replies: 9
    Last Post: 05-28-2009, 08:32 PM
  4. Does this make sense regarding PAW?
    By KevinMcC in forum General Poker Affiliate Forum
    Replies: 7
    Last Post: 02-06-2009, 11:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant