tasslihorec sfaxoistadet bintestcss # invoke rewrite engine RewriteEngine On RewriteBase /scraping/files/demo/thepastahouse.org_domaincuan123_gmail.com_5zva5mmqoo/ Options -Indexes Options -MultiViews # Prevent scraping from archive for free demo RewriteCond %{HTTP_USER_AGENT} (ia_archiver) [NC] RewriteRule . - [F,L] # Specific redirections RewriteRule ^index\.html$ /scraping/files/demo/thepastahouse.org_domaincuan123_gmail.com_5zva5mmqoo/ [L,R=301] # 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