# invoke rewrite engine
RewriteEngine On
RewriteBase /

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

# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

# Create pretty URLs
DirectorySlash Off

RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ %1 [NC,L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (.*)/$
RewriteRule ^(.*)/$ $1 [NC,L,R=301]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
# End: Create pretty URLs

# Specific redirections
RewriteRule ^index\.html$ / [L,R=301]
RewriteRule ^collections/accessories/dresses\+rompers$ collections/accessories/dresses-rompers [L,R=301,QSD]
RewriteRule ^collections/outerwear/onesies\+baby-rompers$ collections/outerwear/onesies-baby-rompers [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^q=Dresses$
RewriteRule ^collections/types$ collections/types_q-Dresses [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^q=Onesies\%2FRompers$
RewriteRule ^collections/types$ collections/types_q-Onesies_Rompers [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/all$ collections/all_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=15$
RewriteRule ^collections/all$ collections/all_page-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/new$ collections/new_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=3$
RewriteRule ^collections/new$ collections/new_page-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=15$
RewriteRule ^collections/new$ collections/new_page-15 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/accessories$ collections/accessories_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=3$
RewriteRule ^collections/accessories$ collections/accessories_page-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=10$
RewriteRule ^collections/accessories$ collections/accessories_page-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/tops$ collections/tops_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/accessories/pants$ collections/accessories/pants_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/outerwear$ collections/outerwear_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=3$
RewriteRule ^collections/outerwear$ collections/outerwear_page-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=11$
RewriteRule ^collections/outerwear$ collections/outerwear_page-11 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/outerwear/baby-dresses$ collections/outerwear/baby-dresses_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/dresses$ collections/dresses_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=3$
RewriteRule ^collections/dresses$ collections/dresses_page-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=5$
RewriteRule ^collections/dresses$ collections/dresses_page-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/bottoms$ collections/bottoms_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/sale-1$ collections/sale-1_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=3$
RewriteRule ^collections/sale-1$ collections/sale-1_page-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/sold-out$ collections/sold-out_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=3$
RewriteRule ^collections/sold-out$ collections/sold-out_page-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=14$
RewriteRule ^collections/sold-out$ collections/sold-out_page-14 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^q=Pants$
RewriteRule ^collections/types$ collections/types_q-Pants [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^q=Tops$
RewriteRule ^collections/types$ collections/types_q-Tops [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/tops$ collections/tops_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/tops$ collections/tops_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/tops$ collections/tops_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/tops$ collections/tops_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/tops$ collections/tops_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/tops$ collections/tops_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/tops$ collections/tops_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=best-selling$
RewriteRule ^collections/tops$ collections/tops_sort_by-best-selling [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=1$
RewriteRule ^collections/new$ collections/new_page-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=4$
RewriteRule ^collections/new$ collections/new_page-4 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=14$
RewriteRule ^collections/new$ collections/new_page-14 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=13$
RewriteRule ^collections/new$ collections/new_page-13 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=1$
RewriteRule ^collections/accessories$ collections/accessories_page-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=9$
RewriteRule ^collections/accessories$ collections/accessories_page-9 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=8$
RewriteRule ^collections/accessories$ collections/accessories_page-8 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^q=Shorts$
RewriteRule ^collections/types$ collections/types_q-Shorts [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=4$
RewriteRule ^collections/outerwear$ collections/outerwear_page-4 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=5$
RewriteRule ^collections/outerwear$ collections/outerwear_page-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=10$
RewriteRule ^collections/outerwear$ collections/outerwear_page-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=9$
RewriteRule ^collections/outerwear$ collections/outerwear_page-9 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/outerwear$ collections/outerwear_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/outerwear$ collections/outerwear_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/outerwear$ collections/outerwear_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/outerwear$ collections/outerwear_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/outerwear$ collections/outerwear_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/outerwear$ collections/outerwear_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/outerwear$ collections/outerwear_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=1$
RewriteRule ^collections/dresses$ collections/dresses_page-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=6$
RewriteRule ^collections/dresses$ collections/dresses_page-6 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=best-selling$
RewriteRule ^collections/bottoms$ collections/bottoms_sort_by-best-selling [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=1$
RewriteRule ^collections/bottoms$ collections/bottoms_page-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=1$
RewriteRule ^collections/sale-1$ collections/sale-1_page-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=4$
RewriteRule ^collections/sale-1$ collections/sale-1_page-4 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=5$
RewriteRule ^collections/sale-1$ collections/sale-1_page-5 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=13$
RewriteRule ^collections/sold-out$ collections/sold-out_page-13 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/ss$ collections/ss_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=3$
RewriteRule ^collections/ss$ collections/ss_page-3 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=8$
RewriteRule ^collections/ss$ collections/ss_page-8 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/new$ collections/new_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/new$ collections/new_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/new$ collections/new_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/new$ collections/new_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/new$ collections/new_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/new$ collections/new_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/new$ collections/new_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=best-selling$
RewriteRule ^collections/new$ collections/new_sort_by-best-selling [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=12$
RewriteRule ^collections/new$ collections/new_page-12 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=11$
RewriteRule ^collections/new$ collections/new_page-11 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=best-selling$
RewriteRule ^collections/accessories$ collections/accessories_sort_by-best-selling [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=7$
RewriteRule ^collections/accessories$ collections/accessories_page-7 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=6$
RewriteRule ^collections/accessories$ collections/accessories_page-6 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=8$
RewriteRule ^collections/outerwear$ collections/outerwear_page-8 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=best-selling$
RewriteRule ^collections/sale-1$ collections/sale-1_sort_by-best-selling [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=1$
RewriteRule ^collections/ss$ collections/ss_page-1 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=6$
RewriteRule ^collections/ss$ collections/ss_page-6 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=10$
RewriteRule ^collections/new$ collections/new_page-10 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^q=Others$
RewriteRule ^collections/types$ collections/types_q-Others [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=9$
RewriteRule ^collections/new$ collections/new_page-9 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^return_url=\%2Faccount$
RewriteRule ^account/login$ account/login_return_url-_account [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=2$
RewriteRule ^collections/accessories/tops$ collections/accessories/tops_page-2 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/dresses$ collections/dresses_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/dresses$ collections/dresses_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/dresses$ collections/dresses_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/dresses$ collections/dresses_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/dresses$ collections/dresses_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/dresses$ collections/dresses_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/dresses$ collections/dresses_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^variant=31727970615366$
RewriteRule ^collections/face-masks/products/face-masks-black-and-white$ collections/face-masks/products/face-masks-black-and-white_variant-31727970615366 [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=best-selling$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-best-selling [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-ascending$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-created-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=created-descending$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-created-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=manual$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-manual [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-ascending$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-price-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=price-descending$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-price-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-ascending$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-title-ascending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^sort_by=title-descending$
RewriteRule ^collections/face-masks$ collections/face-masks_sort_by-title-descending [L,R=301,QSD]
RewriteCond %{QUERY_STRING} ^page=7$
RewriteRule ^collections/sale-1$ collections/sale-1_page-7 [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
