# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/live/banthodep360.com_duwianton26_gmail.com_ym1im857mv/

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

# 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/banthodep360.com_duwianton26_gmail.com_ym1im857mv/ [L,R=301]
RewriteRule ^noi-that-phong-tho\.html/page/2$ /scraping/files/live/banthodep360.com_duwianton26_gmail.com_ym1im857mv/noi-that-phong-tho_html/page/2.html [L,R=301,QSD]
RewriteRule ^tin-tuc\.html/page/2$ /scraping/files/live/banthodep360.com_duwianton26_gmail.com_ym1im857mv/tin-tuc_html/page/2.html [L,R=301,QSD]
RewriteRule ^tin-tuc\.html/page/3$ /scraping/files/live/banthodep360.com_duwianton26_gmail.com_ym1im857mv/tin-tuc_html/page/3.html [L,R=301,QSD]
RewriteRule ^tu-van-phong-thuy\.html/page/2$ /scraping/files/live/banthodep360.com_duwianton26_gmail.com_ym1im857mv/tu-van-phong-thuy_html/page/2.html [L,R=301,QSD]
RewriteRule ^ban-tho-mien-bac\.html/page/2$ /scraping/files/live/banthodep360.com_duwianton26_gmail.com_ym1im857mv/ban-tho-mien-bac_html/page/2.html [L,R=301,QSD]
RewriteRule ^ban-tho-mien-nam\.html/page/2$ /scraping/files/live/banthodep360.com_duwianton26_gmail.com_ym1im857mv/ban-tho-mien-nam_html/page/2.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
