New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
BettingPartners.com - Exclusive Affiliate Network for Bodog
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Fabulous Beyond Compare
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    America
    Posts
    1,486
    Blog Entries
    1
    Feedback Score
    31 (100%)

    Default HtAccess Clean Up

    Hey Guys

    My htaccess is a cluttered mess! Some of the stuff in there has been in the file for 4/5 years, and I studied tutorials getting it there to fix some problem er other.

    I am primarily curious about the line that redirects the .com to the .com/ because it seems to appear a few times. I'd also like to make that go the other way, the .com/ to the .com because that's where most of the links are found.. but if anyone has time to look over any of it and help me get it cleaned up, I'd really appreciate it. If you're willing to fix it, the way it oughta be, for a fee, feel free to pm.

    the htaccess file is attached below

    Thanks!
    Attached Files
    I write about:
    • Poker
    • Sportsbetting
    • Bingo
    • Casinos
    • Forex
    • Online Dating
    • Real Estate

    MSG ME FOR INFO!

    For the latest LadyHoldem Content Specials, Like me on Facebook!

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    ROU
    Posts
    419
    Feedback Score
    0

    Default

    Interesting topic. I know NOTHING about this stuff.

    ...waiting for the experts

  3. #3
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    May 2009
    Location
    United States
    Posts
    225
    Feedback Score
    4 (100%)

    Default

    It starts off with adding a file handler for php5 (line 2)

    Sets your 404 error doc (line 4)

    Then does a rewrite to force www. to the beginning of all URLS. (line 6-8)

    Not 100% certain what line 10-13 are doing. Someone may be able to help here.

    Explicitly denying access to the site from 2 IP's (line 15,16)

    Standard Wordpress htaccess stuff (lines 18-26)

    Line 27,28 looks like a rewrite to get rid of an old directory and force it to the new url structure but not sure if it is working at all, someone with more experience can chime in here!

    Lines 30-36 are doing a redirect using RewriteRule but could be reformatted like so:

    PHP Code:
    Redirect 301 /fulltiltpoker/fulltiltreview.html http://www.4flush.com/full-tilt-poker-review-2008/
    Redirect 301 /pokerstars/pokerstarsreview.html http://www.4flush.com/pokerstars-bonus-code-review-2008/ 
    Lines 38-101 are just redirects for affiliate links as well as renamed articles. And some articles that had special characters in the url string (like line 101).

    All pretty standard stuff!

    Hopefully someone else can chime in here. But if you make ANY changes AT ALL, make a backup first (well we already have one in the OP) and do them one at a time and test test test.


  4. #4
    Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    75
    Feedback Score
    1 (100%)

    Default

    Expanding on cprpoker's comments...

    I don't think lines 10-13 are necessary. I would comment them out, make sure things run of course.

    Lines 27-28 looks like you had the site in a subdir at one point and moved it to the main site. I believe line 27 is unnecessary though and you can comment out.

    in reality, wherever you have 4flush hardcoded, you can replace it with / instead and it should work.

    It mostly looks ok really. If you didn't touch anything, it would still work fine. I don't see anything totally crazy.

  5. #5
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    May 2009
    Location
    United States
    Posts
    225
    Feedback Score
    4 (100%)

    Default

    @ MewsicLovr what do you think of my comment to change line 30-36 to use "Redirect" instead of the RewriteRule? It would make it more consistent with the rest of the doc. But there could be a reason it's used, I usually just sound like I know what I am talking about. Being correct is a different story

  6. #6
    Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    75
    Feedback Score
    1 (100%)

    Default

    Quote Originally Posted by cprpoker View Post
    @ MewsicLovr what do you think of my comment to change line 30-36 to use "Redirect" instead of the RewriteRule? It would make it more consistent with the rest of the doc. But there could be a reason it's used, I usually just sound like I know what I am talking about. Being correct is a different story
    I think that's fine, and it's why I didn't address it I only expanded where you seemed unsure or where I disagreed.

  7. #7
    #!/usr/bin/mikebrad
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    697
    Feedback Score
    8 (100%)

    Default

    If I'm not mistaken, you need lines 10-13 to be able to do the deny in lines 15 and 16.

  8. #8
    Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    75
    Feedback Score
    1 (100%)

    Default

    Quote Originally Posted by Mike View Post
    If I'm not mistaken, you need lines 10-13 to be able to do the deny in lines 15 and 16.
    I did a few tests using my own IP to make sure and the Files block only applies to those files. So basically what those lines do is allow everyone access to 403.shtml (even the banned ips), and then the banned IPs are denied access to the rest of the site, but that doesn't have anything to do with the previous Files block. So it's kind of redundant to have those lines there unless you specifically want banned ips to see your custom 403 page which I don't really see the point of doing.

    If you wanted to be explicit you could do this (outside the Files block)

    order allow,deny
    allow from all

    deny from 74.86.186.66
    deny from 74.86.179.154

  9. #9
    Member
    My Status
     

    Add as a friend
    Join Date
    Jun 2009
    Location
    canada
    Posts
    36
    Feedback Score
    1 (100%)

    Default

    also make sure you disallow /links/ in robots.txt or you are just giving away link juice to the poker sites


 

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Link clean up
    By GFPC in forum General Poker Affiliate Forum
    Replies: 0
    Last Post: 05-19-2010, 03:39 AM
  2. Replies: 2
    Last Post: 02-07-2010, 06:43 PM
  3. Looking for clean, simple mini-site templates
    By TheShortStack in forum Wordpress - Web Design - Coding - Technical
    Replies: 7
    Last Post: 07-06-2009, 05:38 AM
  4. Replies: 12
    Last Post: 05-31-2009, 02:50 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