It appears that I have a redirect loop of some sort going on. It's sucking up all my bandwith. Yesterday, over 3GB until the limit was exceeded. Of course, that means my site goes down.
I am not very good with htaccess and I copied and pasted code from various webpages (without actually understanding it sometimes). It works as I intended, other than this unfortunate side effect. Does anyone see anything wrong with it?
PHP Code:RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)/$ /$1.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://www.mypokerbasics.com/$1/ [R=301,L]
rewritecond %{http_host} ^mypokerbasics.com [nc]
rewriterule ^(.*)$ http://www.mypokerbasics.com/$1 [r=301,nc]
########## Begin - 301 redirects
redirect 301 /introduction-to-poker/index.php http://www.mypokerbasics.com/how-to-play-poker
redirect 301 /introduction-to-poker/poker-hand-ranking.html http://www.mypokerbasics.com/poker-hand-ranking
redirect 301 /documents/poker_hands.pdf http://www.mypokerbasics.com/poker-hand-ranking.pdf
redirect 301 /introduction-to-poker/winning-poker-hand.html http://www.mypokerbasics.com/winning-poker-hand
redirect 301 /introduction-to-poker/poker-terminology.html http://www.mypokerbasics.com/poker-terms
redirect 301 /poker-games-and-rules/index.php http://www.mypokerbasics.com/poker-games
redirect 301 /poker-games-and-rules/omaha.html http://www.mypokerbasics.com/how-to-play-omaha
redirect 301 /poker-games-and-rules/7-card-stud.html http://www.mypokerbasics.com/how-to-play-7-card-stud
redirect 301 /poker-games-and-rules/razz.html http://www.mypokerbasics.com/how-to-play-razz
redirect 301 /poker-games-and-rules/let-it-ride.html http://www.mypokerbasics.com
redirect 301 /poker-games-and-rules/hose.html http://www.mypokerbasics.com/how-to-play-hose
redirect 301 /poker-games-and-rules/horse.html http://www.mypokerbasics.com/how-to-play-horse
redirect 301 /poker-games-and-rules/follow-the-queen.html http://www.mypokerbasics.com
redirect 301 /poker-games-and-rules/ho.html http://www.mypokerbasics.com/how-to-play-ho
redirect 301 /poker-games-and-rules/har.html http://www.mypokerbasics.com/how-to-play-har
redirect 301 /poker-games-and-rules/half-n-half.html http://www.mypokerbasics.com/how-to-play-half-n-half
redirect 301 /poker-games-and-rules/ha.html http://www.mypokerbasics.com/how-to-play-ha
redirect 301 /poker-games-and-rules/5-card-stud.html http://www.mypokerbasics.com/how-to-play-5-card-stud
redirect 301 /poker-games-and-rules/5-card-draw.html http://www.mypokerbasics.com/how-to-play-5-card-draw
redirect 301 /poker-games-and-rules/crazy-pineapple-hi-lo.html http://www.mypokerbasics.com
redirect 301 /poker-games-and-rules/crazy-pineapple.html http://www.mypokerbasics.com
redirect 301 /poker-games-and-rules/caribbean-stud-poker.html http://www.mypokerbasics.com
redirect 301 /poker-games-and-rules/badugi.html http://www.mypokerbasics.com/how-to-play-badugi
redirect 301 /poker-games-and-rules/texas-holdem.html http://www.mypokerbasics.com/how-to-play-texas-holdem
redirect 301 /poker-rooms/where-to-play-poker.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-rooms/top-10-poker-rooms.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-rooms/poker-room-reviews.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /sitemap/index.php http://www.mypokerbasics.com/sitemap
redirect 301 /links/poker-rooms.html http://www.mypokerbasics.com/links/poker-rooms
redirect 301 /links/online-casinos.html http://www.mypokerbasics.com/links/online-casinos
redirect 301 /links/casino-websites.html http://www.mypokerbasics.com/links/casino-websites
redirect 301 /links/poker-portals.html http://www.mypokerbasics.com/links/poker-portals
redirect 301 /links/poker-leagues.html http://www.mypokerbasics.com/links/poker-leagues
redirect 301 /links/gambling-forums.html http://www.mypokerbasics.com/links/gambling-forums
redirect 301 /links/gambling-supplies.html http://www.mypokerbasics.com/links/gambling-supplies
redirect 301 /links/gambling-directories.html http://www.mypokerbasics.com/links/gambling-directories
redirect 301 /links/poker-strategy.html http://www.mypokerbasics.com/links/poker-strategy
redirect 301 /links/poker-freerolls.html http://www.mypokerbasics.com/links/poker-freerolls
redirect 301 /links/gambling-reviews.html http://www.mypokerbasics.com/links/gambling-reviews
redirect 301 /linx/bonus_codes.html http://www.mypokerbasics.com/links/bonus-codes
redirect 301 /links/gambling-news.html http://www.mypokerbasics.com/links/gambling-news
redirect 301 /links/poker-tools.html http://www.mypokerbasics.com/links/poker-tools
redirect 301 /links/poker-books-and-dvds.html http://www.mypokerbasics.com/links/poker-books-and-dvds
redirect 301 /links/gambling-blogs.html http://www.mypokerbasics.com/links/gambling-blogs
redirect 301 /links/bingo.html http://www.mypokerbasics.com/links/bingo
redirect 301 /links/sports-betting.html http://www.mypokerbasics.com/links/sports-betting
redirect 301 /links/foreign-gambling-sites.html http://www.mypokerbasics.com/links/foreign-gambling-sites
redirect 301 /links/add_link.html http://www.mypokerbasics.com/links
redirect 301 /poker-rooms/poker-room-reviews.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-reviews/bodog-poker-review.html http://www.mypokerbasics.com/bodog-poker-bonus-code
redirect 301 /poker-reviews/cake-poker-review.html http://www.mypokerbasics.com/cake-poker-bonus-code
redirect 301 /poker-reviews/carbon-poker-review.html http://www.mypokerbasics.com/carbon-poker-bonus-code
redirect 301 /poker-reviews/cd-poker-review.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-reviews/doyles-room-poker-review.html http://www.mypokerbasics.com/doyles-room-bonus-code
redirect 301 /poker-reviews/full-tilt-poker-review.html http://www.mypokerbasics.com/fulltilt-poker-bonus-code
redirect 301 /poker-reviews/hollywood-poker-review.html http://www.mypokerbasics.com/hollywood-poker-bonus-code
redirect 301 /poker-reviews/mansion-poker-review.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-reviews/pacific-poker-review.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-reviews/paradise-poker-review.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-reviews/party-poker-review.html http://www.mypokerbasics.com/party-poker-bonus-code
redirect 301 /poker-reviews/pkr-poker-review.html http://www.mypokerbasics.com/pkr-poker-bonus-code
redirect 301 /poker-reviews/poker-stars-poker-review.html http://www.mypokerbasics.com/pokerstars-bonus-code
redirect 301 /poker-reviews/sun-poker-review.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-reviews/texasholdem.com-poker-review.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-reviews/titan-poker-review.html http://www.mypokerbasics.com/titan-poker-bonus-code
redirect 301 /poker-reviews/redkings-poker-review.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /poker-rooms/poker-room-reviews.html http://www.mypokerbasics.com/best-poker-rooms
redirect 301 /contact-us/index.php http://www.mypokerbasics.com/contact
########## End - 301 redirects
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
## Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
## Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
## Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
## Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
## Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
## Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
########## End - Rewrite rules to block out some common exploits













LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks