# Redirect non-www to www

# 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

# Create pretty URLs
# End: Create pretty URLs

# Specific redirections
if ($args ~* ^route=information/information&information_id=4$){ rewrite ^/index\.php$ /index_route-information_information-information_id-4.html? permanent; }
if ($args ~* ^route=information/contact$){ rewrite ^/index\.php$ /index_route-information_contact.html? permanent; }
if ($args ~* ^route=product/compare$){ rewrite ^/index\.php$ /index_route-product_compare.html? permanent; }
if ($args ~* ^route=checkout/cart$){ rewrite ^/index\.php$ /index_route-checkout_cart.html? permanent; }
if ($args ~* ^route=journal3/blog$){ rewrite ^/index\.php$ /index_route-journal3_blog.html? permanent; }
if ($args ~* ^route=product/special$){ rewrite ^/index\.php$ /index_route-product_special.html? permanent; }
if ($args ~* ^route=product/manufacturer/info&manufacturer_id=13$){ rewrite ^/index\.php$ /index_route-product_manufacturer_info-manufacturer_id-13.html? permanent; }
if ($args ~* ^route=product/manufacturer/info&manufacturer_id=11$){ rewrite ^/index\.php$ /index_route-product_manufacturer_info-manufacturer_id-11.html? permanent; }
if ($args ~* ^route=product/manufacturer/info&manufacturer_id=12$){ rewrite ^/index\.php$ /index_route-product_manufacturer_info-manufacturer_id-12.html? permanent; }
