# Specific redirections
if ($args ~* ^page=2$){ rewrite ^/collections/short-sleeve$ /collections/short-sleeve_page-2? permanent; }
if ($args ~* ^page=2$){ rewrite ^/collections/long-sleeve$ /collections/long-sleeve_page-2? permanent; }
if ($args ~* ^page=3$){ rewrite ^/collections/accessories$ /collections/accessories_page-3? permanent; }
if ($args ~* ^page=4$){ rewrite ^/collections/accessories$ /collections/accessories_page-4? permanent; }
if ($args ~* ^page=2$){ rewrite ^/collections/active-style$ /collections/active-style_page-2? permanent; }
if ($args ~* ^page=3$){ rewrite ^/collections/active-style$ /collections/active-style_page-3? permanent; }
if ($args ~* ^page=2$){ rewrite ^/collections/cycling-mountain-biking$ /collections/cycling-mountain-biking_page-2? permanent; }
if ($args ~* ^page=3$){ rewrite ^/collections/cycling-mountain-biking$ /collections/cycling-mountain-biking_page-3? permanent; }
if ($args ~* ^page=2$){ rewrite ^/collections/winter-sports$ /collections/winter-sports_page-2? permanent; }
if ($args ~* ^page=3$){ rewrite ^/collections/winter-sports$ /collections/winter-sports_page-3? permanent; }
if ($args ~* ^page=6$){ rewrite ^/collections/winter-sports$ /collections/winter-sports_page-6? permanent; }
if ($args ~* ^page=2$){ rewrite ^/collections/new$ /collections/new_page-2? permanent; }
if ($args ~* ^page=1$){ rewrite ^/collections/short-sleeve$ /collections/short-sleeve_page-1? permanent; }
if ($args ~* ^page=1$){ rewrite ^/collections/accessories$ /collections/accessories_page-1? permanent; }
if ($args ~* ^page=1$){ rewrite ^/collections/active-style$ /collections/active-style_page-1? permanent; }
if ($args ~* ^page=4$){ rewrite ^/collections/cycling-mountain-biking$ /collections/cycling-mountain-biking_page-4? permanent; }
if ($args ~* ^page=5$){ rewrite ^/collections/winter-sports$ /collections/winter-sports_page-5? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/women$ /product-category/women/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/product-category/women$ /product-category/women/product_count-50? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/product-category/women$ /product-category/women/product_count-75? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/children$ /product-category/children/product_count-25? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/product-category/children$ /product-category/children/product_count-75? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_orderby-popularity? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_count-50? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_count-75? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_view-grid? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/product-category/categories/tops-categories$ /product-category/categories/tops-categories/product_view-list? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_orderby-rating? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_order-desc? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_count-50? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/product-category/categories/tops-categories/short-sleeve$ /product-category/categories/tops-categories/short-sleeve/product_view-list? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/categories/outwear/jackets-overcoats$ /product-category/categories/outwear/jackets-overcoats/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/categories/outwear/jackets-overcoats$ /product-category/categories/outwear/jackets-overcoats/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/categories/outwear/jackets-overcoats$ /product-category/categories/outwear/jackets-overcoats/product_orderby-rating? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/categories/outwear/jackets-overcoats$ /product-category/categories/outwear/jackets-overcoats/product_count-25? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/categories/outwear/jackets-overcoats$ /product-category/categories/outwear/jackets-overcoats/product_view-grid? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/winter$ /product-category/winter/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/winter$ /product-category/winter/product_orderby-popularity? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/winter$ /product-category/winter/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/product-category/winter$ /product-category/winter/product_count-50? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/product-category/winter$ /product-category/winter/product_count-75? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/product-category/winter$ /product-category/winter/product_view-list? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/collections/klima$ /product-category/collections/klima/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/product-category/collections/klima$ /product-category/collections/klima/product_count-50? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/new$ /product-category/new/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/new$ /product-category/new/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/new$ /product-category/new/product_orderby-rating? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/product-category/new$ /product-category/new/product_count-50? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/product-category/new$ /product-category/new/product_count-75? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/color/black$ /color/black/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/color/black$ /color/black/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/color/black$ /color/black/product_orderby-rating? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/color/black$ /color/black/product_order-desc? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/color/black$ /color/black/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/color/black$ /color/black/product_count-50? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/color/black$ /color/black/product_count-75? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/color/black$ /color/black/product_view-grid? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/active-style$ /product-category/active-style/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/active-style$ /product-category/active-style/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/active-style$ /product-category/active-style/product_orderby-popularity? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/active-style$ /product-category/active-style/product_order-desc? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/active-style$ /product-category/active-style/product_count-25? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/product-category/active-style$ /product-category/active-style/product_count-75? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/active-style$ /product-category/active-style/product_view-grid? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/swimming$ /product-category/swimming/product_count-25? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_orderby-rating? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_order-desc? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_count-50? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_count-75? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_view-grid? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/product-category/limited-edition$ /product-category/limited-edition/product_view-list? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/size/one-size$ /size/one-size/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/size/one-size$ /size/one-size/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/size/one-size$ /size/one-size/product_orderby-popularity? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/size/one-size$ /size/one-size/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/size/one-size$ /size/one-size/product_count-50? permanent; }
if ($args ~* ^product_count=75$){ rewrite ^/size/one-size$ /size/one-size/product_count-75? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/size/one-size$ /size/one-size/product_view-list? permanent; }
if ($args ~* ^product_count=75&product_order=desc$){ rewrite ^/product-category/women$ /product-category/women/product_count-75-product_order-desc? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/product-category/women/page/2$ /product-category/women/page/2/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/women/page/2$ /product-category/women/page/2/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/women/page/2$ /product-category/women/page/2/product_orderby-rating? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/product-category/women/page/3$ /product-category/women/page/3/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/women/page/3$ /product-category/women/page/3/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/women/page/3$ /product-category/women/page/3/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/women/page/3$ /product-category/women/page/3/product_orderby-rating? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/women/page/3$ /product-category/women/page/3/product_view-grid? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/women/page/4$ /product-category/women/page/4/product_order-desc? permanent; }
if ($args ~* ^product_orderby=date&product_count=25$){ rewrite ^/product-category/winter$ /product-category/winter/product_orderby-date-product_count-25? permanent; }
if ($args ~* ^product_orderby=date&product_count=50$){ rewrite ^/product-category/winter$ /product-category/winter/product_orderby-date-product_count-50? permanent; }
if ($args ~* ^product_orderby=date&product_count=75$){ rewrite ^/product-category/winter$ /product-category/winter/product_orderby-date-product_count-75? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/winter/page/3$ /product-category/winter/page/3/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=popularity&product_count=50$){ rewrite ^/product-category/winter$ /product-category/winter/product_orderby-popularity-product_count-50? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/winter/page/2$ /product-category/winter/page/2/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/winter/page/4$ /product-category/winter/page/4/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/winter/page/6$ /product-category/winter/page/6/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/winter/page/7$ /product-category/winter/page/7/product_orderby-popularity? permanent; }
if ($args ~* ^product_count=25&product_orderby=date$){ rewrite ^/product-category/winter$ /product-category/winter/product_count-25-product_orderby-date? permanent; }
if ($args ~* ^product_count=50&product_orderby=date$){ rewrite ^/product-category/winter$ /product-category/winter/product_count-50-product_orderby-date? permanent; }
if ($args ~* ^product_count=50&product_orderby=popularity$){ rewrite ^/product-category/winter$ /product-category/winter/product_count-50-product_orderby-popularity? permanent; }
if ($args ~* ^product_count=75&product_orderby=date$){ rewrite ^/product-category/winter$ /product-category/winter/product_count-75-product_orderby-date? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_view-list? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/product-category/winter/page/6$ /product-category/winter/page/6/product_view-list? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/winter/page/2$ /product-category/winter/page/2/product_orderby-name? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/winter/page/2$ /product-category/winter/page/2/product_order-desc? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/winter/page/2$ /product-category/winter/page/2/product_view-grid? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/winter/page/3$ /product-category/winter/page/3/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/winter/page/3$ /product-category/winter/page/3/product_orderby-rating? permanent; }
if ($args ~* ^product_orderby=date&product_count=25$){ rewrite ^/color/black$ /color/black/product_orderby-date-product_count-25? permanent; }
if ($args ~* ^product_orderby=popularity&product_count=25$){ rewrite ^/color/black$ /color/black/product_orderby-popularity-product_count-25? permanent; }
if ($args ~* ^product_orderby=rating&product_count=25$){ rewrite ^/color/black$ /color/black/product_orderby-rating-product_count-25? permanent; }
if ($args ~* ^product_order=desc&product_count=25$){ rewrite ^/color/black$ /color/black/product_order-desc-product_count-25? permanent; }
if ($args ~* ^product_count=25&product_orderby=default$){ rewrite ^/color/black$ /color/black/product_count-25-product_orderby-default? permanent; }
if ($args ~* ^product_count=25&product_orderby=name$){ rewrite ^/color/black$ /color/black/product_count-25-product_orderby-name? permanent; }
if ($args ~* ^product_count=25&product_orderby=date$){ rewrite ^/color/black$ /color/black/product_count-25-product_orderby-date? permanent; }
if ($args ~* ^product_count=25&product_orderby=popularity$){ rewrite ^/color/black$ /color/black/product_count-25-product_orderby-popularity? permanent; }
if ($args ~* ^product_count=25&product_orderby=rating$){ rewrite ^/color/black$ /color/black/product_count-25-product_orderby-rating? permanent; }
if ($args ~* ^product_count=25&product_order=desc$){ rewrite ^/color/black$ /color/black/product_count-25-product_order-desc? permanent; }
if ($args ~* ^product_count=25&product_view=grid$){ rewrite ^/color/black$ /color/black/product_count-25-product_view-grid? permanent; }
if ($args ~* ^product_count=25&product_view=list$){ rewrite ^/color/black$ /color/black/product_count-25-product_view-list? permanent; }
if ($args ~* ^product_count=50&product_orderby=default$){ rewrite ^/color/black$ /color/black/product_count-50-product_orderby-default? permanent; }
if ($args ~* ^product_view=grid&product_count=25$){ rewrite ^/color/black$ /color/black/product_view-grid-product_count-25? permanent; }
if ($args ~* ^product_order=desc&product_count=75$){ rewrite ^/product-category/women$ /product-category/women/product_order-desc-product_count-75? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/women/page/5$ /product-category/women/page/5/product_orderby-rating? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/women/page/5$ /product-category/women/page/5/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/women/page/5$ /product-category/women/page/5/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/women/page/5$ /product-category/women/page/5/product_orderby-popularity? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/women/page/5$ /product-category/women/page/5/product_order-desc? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/product-category/women/page/6$ /product-category/women/page/6/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=popularity$){ rewrite ^/product-category/women/page/6$ /product-category/women/page/6/product_orderby-popularity? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/women/page/6$ /product-category/women/page/6/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/women/page/6$ /product-category/women/page/6/product_orderby-date? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/women/page/6$ /product-category/women/page/6/product_order-desc? permanent; }
if ($args ~* ^product_view=list$){ rewrite ^/product-category/women/page/6$ /product-category/women/page/6/product_view-list? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/women/page/13$ /product-category/women/page/13/product_order-desc? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-price? permanent; }
if ($args ~* ^product_orderby=date&product_view=list$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-date-product_view-list? permanent; }
if ($args ~* ^product_orderby=popularity&product_order=asc$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-popularity-product_order-asc? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/winter/page/6$ /product-category/winter/page/6/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/product-category/winter/page/6$ /product-category/winter/page/6/product_orderby-price? permanent; }
if ($args ~* ^product_view=list&product_orderby=date$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_view-list-product_orderby-date? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_view-grid? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/winter/page/6$ /product-category/winter/page/6/product_view-grid? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/winter/page/6$ /product-category/winter/page/6/product_order-desc? permanent; }
if ($args ~* ^page=3$){ rewrite ^/collections/new$ /collections/new_page-3? permanent; }
if ($args ~* ^page=2$){ rewrite ^/collections/running-hiking$ /collections/running-hiking_page-2? permanent; }
if ($args ~* ^page=3$){ rewrite ^/collections/running-hiking$ /collections/running-hiking_page-3? permanent; }
if ($args ~* ^page=2$){ rewrite ^/collections/triathlon$ /collections/triathlon_page-2? permanent; }
if ($args ~* ^product_count=25&product_orderby=default$){ rewrite ^/color/black/page/2$ /color/black/page/2/product_count-25-product_orderby-default? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/color/black/page/3$ /color/black/page/3/product_count-25? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/color/black/page/4$ /color/black/page/4/product_count-25? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/color/black/page/5$ /color/black/page/5/product_count-25? permanent; }
if ($args ~* ^product_count=25&product_orderby=default$){ rewrite ^/color/black/page/7$ /color/black/page/7/product_count-25-product_orderby-default? permanent; }
if ($args ~* ^product_count=25&product_view=list$){ rewrite ^/color/black/page/7$ /color/black/page/7/product_count-25-product_view-list? permanent; }
if ($args ~* ^product_count=25&product_view=list&product_order=desc$){ rewrite ^/color/black$ /color/black/product_count-25-product_view-list-product_order-desc? permanent; }
if ($args ~* ^product_count=25&product_orderby=default&product_view=grid$){ rewrite ^/color/black$ /color/black/product_count-25-product_orderby-default-product_view-grid? permanent; }
if ($args ~* ^product_count=25&product_view=list&product_orderby=popularity$){ rewrite ^/color/black$ /color/black/product_count-25-product_view-list-product_orderby-popularity? permanent; }
if ($args ~* ^u=http\%3A\%2F\%2Fsearchportal\.information\.com\%3Fa_id\%3D1637\%26domainname\%3Dskinfitusa\.com\%26adultfilter\%3Doff\%26popunder\%3Doff&r=2&adi=100$){ rewrite ^/frame\.aspx$ /-adultfilter-off-popunder-off-r-2-adi-100? permanent; }
if ($args ~* ^product_order=desc$){ rewrite ^/product-category/cycling/page/6$ /product-category/cycling/page/6/product_order-desc? permanent; }
if ($args ~* ^product_orderby=date$){ rewrite ^/product-category/cycling/page/6$ /product-category/cycling/page/6/product_orderby-date? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/product-category/cycling/page/6$ /product-category/cycling/page/6/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/product-category/cycling/page/6$ /product-category/cycling/page/6/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=rating$){ rewrite ^/product-category/cycling/page/6$ /product-category/cycling/page/6/product_orderby-rating? permanent; }
if ($args ~* ^product_view=grid$){ rewrite ^/product-category/cycling/page/6$ /product-category/cycling/page/6/product_view-grid? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/product-category/cycling$ /product-category/cycling/product_count-25? permanent; }
if ($args ~* ^product_count=25&product_orderby=default$){ rewrite ^/product-category/new$ /product-category/new/product_count-25-product_orderby-default? permanent; }
if ($args ~* ^product_count=25&product_orderby=popularity$){ rewrite ^/product-category/new$ /product-category/new/product_count-25-product_orderby-popularity? permanent; }
if ($args ~* ^product_count=25&product_view=grid$){ rewrite ^/product-category/new$ /product-category/new/product_count-25-product_view-grid? permanent; }
if ($args ~* ^product_orderby=name&product_order=asc$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-name-product_order-asc? permanent; }
if ($args ~* ^product_orderby=popularity&product_order=asc&product_view=grid$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-popularity-product_order-asc-product_view-grid? permanent; }
if ($args ~* ^product_orderby=price&product_order=asc$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-price-product_order-asc? permanent; }
if ($args ~* ^product_orderby=rating&product_order=asc$){ rewrite ^/product-category/winter/page/5$ /product-category/winter/page/5/product_orderby-rating-product_order-asc? permanent; }
if ($args ~* ^product_order=desc&product_orderby=name$){ rewrite ^/product-category/women/page/5$ /product-category/women/page/5/product_order-desc-product_orderby-name? permanent; }
if ($args ~* ^product_order=desc&product_orderby=rating$){ rewrite ^/product-category/women/page/5$ /product-category/women/page/5/product_order-desc-product_orderby-rating? permanent; }
if ($args ~* ^product_order=desc&product_orderby=rating$){ rewrite ^/product-category/women/page/6$ /product-category/women/page/6/product_order-desc-product_orderby-rating? permanent; }
if ($args ~* ^product_count=25$){ rewrite ^/shop$ /shop/product_count-25? permanent; }
if ($args ~* ^product_count=50$){ rewrite ^/shop$ /shop/product_count-50? permanent; }
if ($args ~* ^product_count=50&product_orderby=date$){ rewrite ^/shop$ /shop/product_count-50-product_orderby-date? permanent; }
if ($args ~* ^product_count=50&product_orderby=rating$){ rewrite ^/shop$ /shop/product_count-50-product_orderby-rating? permanent; }
if ($args ~* ^product_orderby=default$){ rewrite ^/shop$ /shop/product_orderby-default? permanent; }
if ($args ~* ^product_orderby=name$){ rewrite ^/shop$ /shop/product_orderby-name? permanent; }
if ($args ~* ^product_orderby=price$){ rewrite ^/shop$ /shop/product_orderby-price? permanent; }

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

# Redirect all extensions to html
if ($is_args = ''){
	rewrite ^([^.]*)\.shtml$ $1.html permanent;
	rewrite ^([^.]*)\.phtml$ $1.html permanent;
	rewrite ^([^.]*)\.jhtml$ $1.html permanent;
	rewrite ^([^.]*)\.htm$ $1.html permanent;
	rewrite ^([^.]*)\.php$ $1.html permanent;
	rewrite ^([^.]*)\.aspx$ $1.html permanent;
	rewrite ^([^.]*)\.asp$ $1.html permanent;
	rewrite ^([^.]*)\.jsp$ $1.html permanent;
	rewrite ^([^.]*)\.apk$ $1.html permanent;
}
# End: Redirect all extensions to html
