# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/live/mitasha.com_duwianton26_gmail.com_as54hm5fd2/

Options -Indexes
<IfModule mod_negotiation.c>
	Options -MultiViews
</IfModule>

# Redirect 400,401,403,404,500 to main website
ErrorDocument 400 http://www.mitasha.com
ErrorDocument 401 http://www.mitasha.com
ErrorDocument 403 http://www.mitasha.com
ErrorDocument 404 http://www.mitasha.com
ErrorDocument 500 http://www.mitasha.com

# Create pretty URLs
DirectorySlash Off

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
# End: Create pretty URLs

# Specific redirections
RewriteRule ^index\.html$ /scraping/files/live/mitasha.com_duwianton26_gmail.com_as54hm5fd2/ [L,R=301]
RewriteRule ^Gift\sTrays\.htm$ /scraping/files/live/mitasha.com_duwianton26_gmail.com_as54hm5fd2/GiftTrays.html [L,R=301,QSD]
RewriteRule ^Wedding\sFavours\.htm$ /scraping/files/live/mitasha.com_duwianton26_gmail.com_as54hm5fd2/WeddingFavours.html [L,R=301,QSD]

# Redirect all extensions to html
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.shtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.phtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jhtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.htm$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.php$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.aspx$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.asp$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jsp$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.apk$ $1.html [L,NC,R=301]
# End: Redirect all extensions to html
