# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/demo/pro-handy.com_julianmaskapai05_gmail.com_eefjcs8lt6/

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

# Prevent scraping from archive for free demo
RewriteCond %{HTTP_USER_AGENT} (ia_archiver) [NC]
RewriteRule . - [F,L]

# 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/demo/pro-handy.com_julianmaskapai05_gmail.com_eefjcs8lt6/ [L,R=301]
RewriteRule ^page1/Paulohomz\spage\s1\.1\.html$ /scraping/files/demo/pro-handy.com_julianmaskapai05_gmail.com_eefjcs8lt6/page1/Paulohomzpage1.1.html [L,R=301,QSD]
RewriteRule ^repair/Paulorep\spage\s1\.1\.html$ /scraping/files/demo/pro-handy.com_julianmaskapai05_gmail.com_eefjcs8lt6/repair/Pauloreppage1.1.html [L,R=301,QSD]
RewriteRule ^wash/Paulowsh\spage\s1\.1\.html$ /scraping/files/demo/pro-handy.com_julianmaskapai05_gmail.com_eefjcs8lt6/wash/Paulowshpage1.1.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
