# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/demo/promokudu.com_mistergacor66_gmail.com_iphewsks26/

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/promokudu.com_mistergacor66_gmail.com_iphewsks26/ [L,R=301]
RewriteCond %{QUERY_STRING} ^mid=1302428&cid=0&url=https\%3A\%2F\%2Fprofessionali\.ru\%2F$
RewriteRule ^go-c-1302428\.html$ /scraping/files/demo/promokudu.com_mistergacor66_gmail.com_iphewsks26/go-c-1302428_mid-1302428-cid-0-url-https-professionali_ru.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^mid=1302428&cid=-201&url=https\%3A\%2F\%2Fwww\.emma-sleep\.co\.uk\%2F&refer=https\%3A\%2F\%2Fwww\.promokudu\.com\%2Fpromokod\%2Fprofessionali\.ru&adv=1$
RewriteRule ^go-c--201\.html$ /scraping/files/demo/promokudu.com_mistergacor66_gmail.com_iphewsks26/promokod/professionali.ru-adv-1.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^mid=60761&cid=0&url=https\%3A\%2F\%2Ffursk\.ru\%2F$
RewriteRule ^go-c-60761\.html$ /scraping/files/demo/promokudu.com_mistergacor66_gmail.com_iphewsks26/go-c-60761_mid-60761-cid-0-url-https-fursk_ru.html [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^mid=60761&cid=-201&url=https\%3A\%2F\%2Fwww\.emma-sleep\.co\.uk\%2F&refer=https\%3A\%2F\%2Fwww\.promokudu\.com\%2Fpromokod\%2Ffursk\.ru&adv=1$
RewriteRule ^go-c--201\.html$ /scraping/files/demo/promokudu.com_mistergacor66_gmail.com_iphewsks26/promokod/fursk.ru-adv-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
