<IfModule mod_rewrite.c>

# Enable Rewrite Engine
# ---------------------
RewriteEngine On
RewriteBase /

# For handling the 'www' part of URLs
# -----------------------------------
RewriteCond %{HTTP_HOST} !^bvbasics\.com$ [NC]
RewriteRule (.*) http://bvbasics.com/$1 [R=301,L]

# So that search engines can easily find the sitemap.
# ---------------------------------------------------
RewriteRule ^sitemap.xml$ http://bvbasics.com/index.php/site/sitemap.xml [R=301,L]

# Old Page Redirects
# ------------------
RewriteRule ^home-page(.*)$	$1 [R=permanent,L]

# Redirect index.php Requests
# Turn this off until index.php is removed from ExpEng Control Panel.
# -------------------------------------------------------------------
#RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
#RewriteCond %{THE_REQUEST} !/system/.*
#RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

# Standard ExpressionEngine Rewrite
# ---------------------------------
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>