# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/

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]

# Add a trailing slash (/) to a URL
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.[A-Za-z0-9]*$
RewriteRule .*[^/]$ %{REQUEST_URI}/ [L,R=301]

# Specific redirections
RewriteRule ^index\.html$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/ [L,R=301]
RewriteCond %{QUERY_STRING} ^s=Home&post_type=product&et_search=true$
RewriteRule ^/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/s-Home-post_type-product-et_search-true/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^s=\%20Decor&post_type=product&et_search=true$
RewriteRule ^/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/s-Decor-post_type-product-et_search-true/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^s=\%20Wooden&post_type=product&et_search=true$
RewriteRule ^/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/s-Wooden-post_type-product-et_search-true/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=2188$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-2188/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=2151$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-2151/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=709$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-709/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6965$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6965/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=7659$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-7659/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=7412$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-7412/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=1466$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-1466/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6371$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6371/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=7868$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-7868/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^attribute_pa_cb5feb1b7314637725a2e7=blue-fxq&attribute_pa_eec6c4bdbd339edf8cbea6=about-35cm$
RewriteRule ^product/pumpkin-puff-cushion/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/product/pumpkin-puff-cushion/attribute_pa_cb5feb1b7314637725a2e7-blue-fxq-attribute_pa_eec6c4bdbd339edf8cbea6-about-35cm/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view_mode=grid$
RewriteRule ^shop/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/shop/view_mode-grid/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view_mode=list$
RewriteRule ^shop/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/shop/view_mode-list/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6126$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6126/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6133$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6133/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6149$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6149/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6140$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6140/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=653$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-653/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=52$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-52/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=693$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-693/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=7729$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-7729/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=232$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-232/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=680$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-680/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6227$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6227/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^rating_filter=5$
RewriteRule ^shop/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/shop/rating_filter-5/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^rating_filter=4$
RewriteRule ^shop/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/shop/rating_filter-4/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view_mode=grid$
RewriteRule ^product-category/home-decor/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/product-category/home-decor/view_mode-grid/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view_mode=list$
RewriteRule ^product-category/home-decor/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/product-category/home-decor/view_mode-list/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=6395$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-6395/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=976$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-976/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^rating_filter=5$
RewriteRule ^product-category/home-decor/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/product-category/home-decor/rating_filter-5/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view_mode=grid$
RewriteRule ^product-category/garden-decor/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/product-category/garden-decor/view_mode-grid/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^view_mode=list$
RewriteRule ^product-category/garden-decor/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/product-category/garden-decor/view_mode-list/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=644$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-644/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^et-wishlist-page&add_to_wishlist=1229$
RewriteRule ^my-account-3/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/my-account-3/et-wishlist-page-add_to_wishlist-1229/ [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^rating_filter=5$
RewriteRule ^product-category/garden-decor/?$ /scraping/files/demo/thenaturelabels.com_superrajapanda88_gmail.com_fxpoebmyxi/product-category/garden-decor/rating_filter-5/ [L,R=301,QSD]

# Create pretty URLs
RewriteRule ^([^/]+)/$ $1.html [S=9]
RewriteRule ^([^/]+)/([^/]+)/$ $1/$2.html [S=8]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3.html [S=7]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4.html [S=6]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5.html [S=5]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6.html [S=4]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7.html [S=3]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7/$8.html [S=2]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7/$8/$9.html [S=1]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7/$8/$9/$10.html
# End: Create pretty URLs

# 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
