#php_value display_errors 1 RewriteEngine On #Redirect all non-www traffic to www RewriteCond %{HTTP_HOST} ^horseweb\.com$ RewriteRule ^.*$ http://www.horseweb.com%{REQUEST_URI} [R=301,L] #Redirect search result pages to a keyword-friendly URL RewriteCond %{QUERY_STRING} ^page=search RewriteRule ^b_results.php$ /redirect.php [QSA] #Other redirect rules RewriteRule ^ads/(.*?)/?$ http://www.horseweb.com/horses/$1/ [R=301,L] RewriteRule ^horses/(.*?)/?$ /b_results.php?query=$1 [L] RewriteRule ^calendar/(.*?)/?$ /e_results.php?query=$1 [L] RewriteRule ^feedback.htm?$ /p_feedback.php [L] RewriteRule ^contact.htm?$ /p_contact.php [L] RewriteRule ^advertising.htm?$ /p_advertising.php [L] RewriteRule ^bannerads.htm?$ /p_banner.php [L] RewriteRule ^search/?$ /b_search.php [L] RewriteRule ^csearch/?$ /e_search.php [L] RewriteRule ^design.htm?$ /p_design.php [L] RewriteRule ^map.htm?$ /p_map.php [L] RewriteRule ^faqs.htm?$ /p_faqs.php [L] RewriteRule ^tos.htm?$ /p_tos.php [L] RewriteRule ^faqs-ads.htm?$ /p_faqs_ads.php [L] RewriteRule ^faqs-fraud.htm?$ /p_faqs_fraud.php [L] RewriteRule ^faqs-links.htm?$ /p_faqs_links.php [L] RewriteRule ^faqs-login.htm?$ /p_faqs_login.php [L] RewriteRule ^faqs-calendar.htm?$ /p_faqs_calendar.php [L] RewriteRule ^articles.htm?$ /p_articles.php [L] RewriteRule ^press/([a-z-0-9-]+)-article-([0-9]+)/?$ /a_display.php?id=$2 [L] RewriteRule ^press/?$ /a_results.php [L] RewriteRule ^press/([0-9]+)/?$ /a_results.php?page=$1 [L] RewriteRule ^bystates.htm?$ /b_states.php [L] RewriteRule ^calendar/?$ /e_results.php [L] RewriteRule ^event-([0-9]+).htm?$ /e_view.php?id=$1 [L] RewriteRule ^horses/seller([0-9]+)/ /b_results.php?mid=$1 [L] RewriteRule ^horses/makes/?$ /ma_results.php [L] RewriteRule ^horse/([a-z-0-9-]+)-ad-([0-9]+)/?$ /b_display.php?id=$2 [L] RewriteRule ^seller([0-9]+)/ /b_results.php?mid=$1 [L] RewriteRule ^report/([0-9]+)/?$ /b_report_ad.php?id=$1 [L] RewriteRule ^report/?$ /b_report_ad.php [L] RewriteRule ^([a-z-0-9-]+)-ad-([0-9]+)?$ /b_display.php?id=$2 [L] RewriteRule ^members/register/?$ /m_register.php [L] RewriteRule ^members/login/?$ /m_login.php [L] RewriteRule ^members/reminder/?$ /m_reminder.php [L] RewriteRule ^forgot/?$ /m_reminder.php [L] RewriteRule ^members/logout/?$ /m_logout.php [L] RewriteRule ^members/listings/?$ /m_listings.php [L] RewriteRule ^members/events/?$ /m_events.php [L] RewriteRule ^members/links/?$ /m_links.php [L] RewriteRule ^members/messages/?$ /m_messages.php [L] RewriteRule ^members/profile/?$ /m_profile.php [L] RewriteRule ^enterforms/?$ /m_enter.php [L] RewriteRule ^members/enter/?$ /m_enter.php [L] RewriteRule ^members/?$ /m_index.php [L] RewriteRule ^account/?$ /m_index.php [L] RewriteRule ^links/([0-9]+)/?$ /d_results.php?page=$1 [L] RewriteRule ^links/?$ /d_results.php [L] RewriteRule ^([0-9-a-z-]+)-dealer-([0-9]+)?$ /d_display.php?id=$2 [L] RewriteRule ^pages/tos/$ /p_tos.php [L] RewriteRule ^pages/privacy/$ /p_privacy.php [L] # Legacy pages RewriteRule ^link/([0-9-a-z-]+)/([0-9-a-z-]+)/([0-9-a-z-]+)-([0-9]+)/?$ /d_link.php?simple=$3&id=$4 [L] RewriteRule ^link-([0-9-a-z-]+)-([0-9]+)/?$ /d_link.php?simple=$1&id=$2 [L] RewriteRule ^links/([0-9-a-z-]+)/([0-9-a-z-]+)/([0-9]+)/?$ /d_links.php?simple=$2&page=$3 [L] RewriteRule ^links/([0-9-a-z-]+)/([0-9-a-z-]+)/([0-9]+)/?$ /d_links.php?simple=$2&page=$3 [L] RewriteRule ^links/([0-9-a-z-]+)/([0-9-a-z-]+)/?$ /d_links.php?simple=$2 [L] RewriteRule ^links/([0-9-a-z-]+)/?$ /d_links.php?simple=$1 [L] #RewriteRule ^directory/([0-9-a-z-]+)/([0-9-a-z-]+)/?$ /directory_results.php?category=$1&subcategory=$2 [L] #RewriteRule ^directory/?$ /directory.php [L] # Ext pages ###RewriteRule ^articles.php /articles/beauty.php [R=301,L] ###RewriteCond %{REQUEST_FILENAME} !-f ###RewriteCond %{REQUEST_FILENAME} !-d ###RewriteRule ^(.*?)?$ http://www.horseweb.com [R=301,L] deny from 166.88.193.200,129.0.169.246,107.167.108.72,41.205.28.249,136.0.231.127,129.0.169.228,129.0.169.228,129.0.169.233