#   BULLETPROOF .47.2 >>>>>>> SECURE .HTACCESS     


# If you edit the  BULLETPROOF .47.2 >>>>>>> SECURE .HTACCESS text above

# you will see error messages on the BPS Security Status page

# BPS is reading the version number in the htaccess file to validate checks

# If you would like to change what is displayed above you

# will need to edit the BPS /includes/functions.php file to match your changes

# If you update your WordPress Permalinks the code between BEGIN WordPress and

# END WordPress is replaced by WP htaccess code.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteRule ^([A-Za-z0-9\-\+\']+)$ /trakvanapp/artists/view/$1 [L]
RewriteRule ^([A-Za-z0-9\-\+\']+)/(\d+)$ /trakvanapp/artists/view/$1/$2 [L]
RewriteRule ^checkout/process/(.*)$  /trakvanapp/checkout/process/$1 [L]
RewriteRule ^checkout/place/order/(.*)$  /trakvanapp/checkout/place_order/$1 [L]
RewriteRule ^user/order/view/(\d+)$  /trakvanapp/orders/order_view/$1 [L]
RewriteRule ^user/index$  /trakvanapp/users/ [L]
RewriteRule ^user/order/history$  /trakvanapp/orders/order_history [L]
RewriteRule ^user/edit$  /trakvanapp/users/edit [L]
RewriteRule ^user/support/ticket$  /trakvanapp/support_tickets [L]
RewriteRule ^user/logout$  /trakvanapp/users/logout [L]
RewriteRule ^embed/(.*)$  /trakvanapp/embeds/index/$1 [L]
RewriteRule ^album/add$  /trakvanapp/artist/albums/add [L]
RewriteRule ^cart/(.*)$ /trakvanapp/cart_items/$1 [L]
RewriteRule ^social/fb/authentication$  /trakvanapp/social_api/fb_authentication [L]
RewriteRule ^album/edit/(\d+)$  /trakvanapp/artist/albums/edit/$1 [L]
RewriteRule ^album/delete/(\d+)$  /trakvanapp/artist/albums/ajax_remove/$1 [L]
RewriteRule ^track/add$  /trakvanapp/artist/tracks/add [L]
RewriteRule ^([A-Za-z0-9\-\+\']+)/album/track/(.*)$  /trakvanapp/artist/tracks/index/$1/$2 [L]
RewriteRule ^track/edit/(\d+)$  /trakvanapp/artist/tracks/edit/$1 [L]
RewriteRule ^track/delete/(\d+)/(\d+)$  /trakvanapp/artist/tracks/ajax_remove/id:$1/albid:$2 [L]
RewriteRule ^artist/edit$  /trakvanapp/artist/users/edit [L]
RewriteRule ^artist/coupons$  /trakvanapp/artist/coupons [L]
RewriteRule ^artist/support_tickets$  /trakvanapp/artist/support_tickets/ [L]
RewriteRule ^artist/changepassword$  /trakvanapp/artists/changepassword [L]
RewriteRule ^artist/settings$  /trakvanapp/artists/settings [L]
RewriteRule ^artist/design$  /trakvanapp/artists/design [L]
RewriteRule ^artist/testimonial$  /trakvanapp/artists/testimonial [L]
RewriteRule ^sales/$  /trakvanapp/artist/sales [L]
RewriteRule ^artist$  /trakvanapp/pages/home/ [L]
RewriteRule ^artist/$ /trakvanapp/pages/home/ [L]
RewriteRule ^logout/$  /trakvanapp/artist/users/logout/ [L]
RewriteRule  popup/log-in/$ /?page_id=425 [L]
RewriteRule ^log-in/$ /?page_id=16 [L]
RewriteRule  popup/register/$ /?page_id=429 [L]
RewriteRule ^register/$ /?page_id=126 [L]
RewriteRule ^term/$   /?page_id=132 [L]
RewriteRule  popup/term/$ /?page_id=436 [L]
RewriteRule ^tour/$   /?page_id=210 [L]
RewriteRule ^register-thanks/$ /?page_id=252 [L]
</IfModule>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# This removes all of the BPS security code and replaces it with just the default WP htaccess code

# To restore this file use BPS Restore or activate BulletProof Mode for your Root folder again.


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# BLOCK HOTLINKING TO IMAGES

# To Test that your Hotlinking protection is working visit http://altlab.com/htaccess_tutorial.html

#RewriteEngine On

#RewriteCond %{HTTP_REFERER} !^https?://(www\.)?add-your-domain-here\.com [NC]

#RewriteCond %{HTTP_REFERER} !^$

#RewriteRule .*\.(jpeg|jpg|gif|bmp|png)$ - [F]


# BLOCK MORE BAD BOTS RIPPERS AND OFFLINE BROWSERS

# If you would like to block more bad bots you can get a blacklist from

# http://perishablepress.com/press/2007/06/28/ultimate-htaccess-blacklist/

# You should monitor your site very closely for at least a week if you add a bad bots list

# to see if any website traffic problems or other problems occur.

# Copy and paste your bad bots user agent code list directly below.

