# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/live/chromabets.com_apriansyahwildan84_gmail.com_ikdhu8stbk/

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/chromabets.com_apriansyahwildan84_gmail.com_ikdhu8stbk/ [L,R=301]
RewriteCond %{QUERY_STRING} ^r_code=56233D5$
RewriteRule ^$ /scraping/files/live/chromabets.com_apriansyahwildan84_gmail.com_ikdhu8stbk/r_code-56233D5.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^code=dGtTLj0y$
RewriteRule ^get-envelop\.php$ /scraping/files/live/chromabets.com_apriansyahwildan84_gmail.com_ikdhu8stbk/get-envelop_code-dGtTLj0y.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^r_code=G4G9Q46$
RewriteRule ^register$ /scraping/files/live/chromabets.com_apriansyahwildan84_gmail.com_ikdhu8stbk/register_r_code-G4G9Q46.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
