# Redirect non-www to www

# Specific redirections
if ($args ~* ^_lid=layerC968F69A68D162CCCA7A89C0CD921F5B&_m=jslider&_a=loadskin$){ rewrite ^/index\.php$ /index__lid-layerC968F69A68D162CCCA7A89C0CD921F5B-_m-jslider-_a-loadskin? permanent; }
if ($args ~* ^product_id=443&product_category=57$){ rewrite ^/page103$ /page103_product_id-443-product_category-57? permanent; }
if ($args ~* ^product_category=57$){ rewrite ^/page142$ /page142_product_category-57? permanent; }
if ($args ~* ^product_id=178&product_category=57$){ rewrite ^/page103$ /page103_product_id-178-product_category-57? permanent; }
if ($args ~* ^product_id=179&product_category=57$){ rewrite ^/page103$ /page103_product_id-179-product_category-57? permanent; }
if ($args ~* ^product_id=192&product_category=57$){ rewrite ^/page103$ /page103_product_id-192-product_category-57? permanent; }
if ($args ~* ^product_id=181&product_category=34$){ rewrite ^/page103$ /page103_product_id-181-product_category-34? permanent; }
if ($args ~* ^product_category=34$){ rewrite ^/page142$ /page142_product_category-34? permanent; }
if ($args ~* ^product_id=194&product_category=34$){ rewrite ^/page103$ /page103_product_id-194-product_category-34? permanent; }
if ($args ~* ^product_id=539&product_category=67$){ rewrite ^/page103$ /page103_product_id-539-product_category-67? permanent; }
if ($args ~* ^product_id=538&product_category=67$){ rewrite ^/page103$ /page103_product_id-538-product_category-67? permanent; }
if ($args ~* ^product_id=537&product_category=67$){ rewrite ^/page103$ /page103_product_id-537-product_category-67? permanent; }
if ($args ~* ^product_id=579&product_category=66$){ rewrite ^/page103$ /page103_product_id-579-product_category-66? permanent; }
if ($args ~* ^product_id=578&product_category=66$){ rewrite ^/page103$ /page103_product_id-578-product_category-66? permanent; }
if ($args ~* ^product_id=536&product_category=65$){ rewrite ^/page103$ /page103_product_id-536-product_category-65? permanent; }
if ($args ~* ^product_id=67&product_category=25$){ rewrite ^/page103$ /page103_product_id-67-product_category-25? permanent; }
if ($args ~* ^product_category=25$){ rewrite ^/page142$ /page142_product_category-25? permanent; }
if ($args ~* ^product_id=59&product_category=25$){ rewrite ^/page103$ /page103_product_id-59-product_category-25? permanent; }
if ($args ~* ^product_id=57&product_category=25$){ rewrite ^/page103$ /page103_product_id-57-product_category-25? permanent; }
if ($args ~* ^product_id=54&product_category=25$){ rewrite ^/page103$ /page103_product_id-54-product_category-25? permanent; }
if ($args ~* ^product_id=58&product_category=25$){ rewrite ^/page103$ /page103_product_id-58-product_category-25? permanent; }
if ($args ~* ^product_id=55&product_category=25$){ rewrite ^/page103$ /page103_product_id-55-product_category-25? permanent; }
if ($args ~* ^product_id=120&product_category=29$){ rewrite ^/page103$ /page103_product_id-120-product_category-29? permanent; }
if ($args ~* ^product_id=117&product_category=29$){ rewrite ^/page103$ /page103_product_id-117-product_category-29? permanent; }
if ($args ~* ^product_id=597&product_category=29$){ rewrite ^/page103$ /page103_product_id-597-product_category-29? permanent; }
if ($args ~* ^product_id=119&product_category=29$){ rewrite ^/page103$ /page103_product_id-119-product_category-29? permanent; }
if ($args ~* ^product_id=124&product_category=29$){ rewrite ^/page103$ /page103_product_id-124-product_category-29? permanent; }
if ($args ~* ^product_id=122&product_category=29$){ rewrite ^/page103$ /page103_product_id-122-product_category-29? permanent; }
if ($args ~* ^product_id=244&product_category=37$){ rewrite ^/page103$ /page103_product_id-244-product_category-37? permanent; }
if ($args ~* ^product_id=243&product_category=37$){ rewrite ^/page103$ /page103_product_id-243-product_category-37? permanent; }
if ($args ~* ^product_id=240&product_category=37$){ rewrite ^/page103$ /page103_product_id-240-product_category-37? permanent; }
if ($args ~* ^product_id=239&product_category=37$){ rewrite ^/page103$ /page103_product_id-239-product_category-37? permanent; }
if ($args ~* ^product_id=233&product_category=37$){ rewrite ^/page103$ /page103_product_id-233-product_category-37? permanent; }
if ($args ~* ^product_id=572&product_category=30$){ rewrite ^/page103$ /page103_product_id-572-product_category-30? permanent; }
if ($args ~* ^product_id=571&product_category=30$){ rewrite ^/page103$ /page103_product_id-571-product_category-30? permanent; }
if ($args ~* ^product_id=568&product_category=30$){ rewrite ^/page103$ /page103_product_id-568-product_category-30? permanent; }
if ($args ~* ^product_id=567&product_category=30$){ rewrite ^/page103$ /page103_product_id-567-product_category-30? permanent; }
if ($args ~* ^product_id=566&product_category=30$){ rewrite ^/page103$ /page103_product_id-566-product_category-30? permanent; }
if ($args ~* ^product_id=565&product_category=30$){ rewrite ^/page103$ /page103_product_id-565-product_category-30? permanent; }
if ($args ~* ^product_id=518&product_category=27$){ rewrite ^/page103$ /page103_product_id-518-product_category-27? permanent; }
if ($args ~* ^product_id=517&product_category=27$){ rewrite ^/page103$ /page103_product_id-517-product_category-27? permanent; }
if ($args ~* ^product_id=515&product_category=27$){ rewrite ^/page103$ /page103_product_id-515-product_category-27? permanent; }
if ($args ~* ^product_id=513&product_category=27$){ rewrite ^/page103$ /page103_product_id-513-product_category-27? permanent; }
if ($args ~* ^product_id=512&product_category=27$){ rewrite ^/page103$ /page103_product_id-512-product_category-27? permanent; }
if ($args ~* ^product_id=511&product_category=27$){ rewrite ^/page103$ /page103_product_id-511-product_category-27? permanent; }
if ($args ~* ^product_id=576&product_category=36$){ rewrite ^/page103$ /page103_product_id-576-product_category-36? permanent; }
if ($args ~* ^product_id=575&product_category=36$){ rewrite ^/page103$ /page103_product_id-575-product_category-36? permanent; }
if ($args ~* ^product_id=574&product_category=36$){ rewrite ^/page103$ /page103_product_id-574-product_category-36? permanent; }
if ($args ~* ^product_id=573&product_category=36$){ rewrite ^/page103$ /page103_product_id-573-product_category-36? permanent; }
if ($args ~* ^product_id=499&product_category=33$){ rewrite ^/page103$ /page103_product_id-499-product_category-33? permanent; }
if ($args ~* ^product_id=498&product_category=33$){ rewrite ^/page103$ /page103_product_id-498-product_category-33? permanent; }
if ($args ~* ^product_id=497&product_category=33$){ rewrite ^/page103$ /page103_product_id-497-product_category-33? permanent; }
if ($args ~* ^product_id=496&product_category=33$){ rewrite ^/page103$ /page103_product_id-496-product_category-33? permanent; }
if ($args ~* ^product_id=495&product_category=33$){ rewrite ^/page103$ /page103_product_id-495-product_category-33? permanent; }
if ($args ~* ^product_id=494&product_category=33$){ rewrite ^/page103$ /page103_product_id-494-product_category-33? permanent; }
if ($args ~* ^product_id=555&product_category=31$){ rewrite ^/page103$ /page103_product_id-555-product_category-31? permanent; }
if ($args ~* ^product_id=554&product_category=31$){ rewrite ^/page103$ /page103_product_id-554-product_category-31? permanent; }
if ($args ~* ^product_id=553&product_category=31$){ rewrite ^/page103$ /page103_product_id-553-product_category-31? permanent; }
if ($args ~* ^product_id=552&product_category=31$){ rewrite ^/page103$ /page103_product_id-552-product_category-31? permanent; }
if ($args ~* ^product_id=551&product_category=31$){ rewrite ^/page103$ /page103_product_id-551-product_category-31? permanent; }
if ($args ~* ^product_id=550&product_category=31$){ rewrite ^/page103$ /page103_product_id-550-product_category-31? permanent; }
if ($args ~* ^product_category=9$){ rewrite ^/page142$ /page142_product_category-9? permanent; }
if ($args ~* ^product_id=249$){ rewrite ^/page103$ /page103_product_id-249? permanent; }
if ($args ~* ^product_id=442$){ rewrite ^/page103$ /page103_product_id-442? permanent; }
if ($args ~* ^product_id=246$){ rewrite ^/page103$ /page103_product_id-246? permanent; }
if ($args ~* ^product_id=248$){ rewrite ^/page103$ /page103_product_id-248? permanent; }
if ($args ~* ^product_id=245$){ rewrite ^/page103$ /page103_product_id-245? permanent; }
if ($args ~* ^product_id=250$){ rewrite ^/page103$ /page103_product_id-250? permanent; }
if ($args ~* ^product_id=251$){ rewrite ^/page103$ /page103_product_id-251? permanent; }
if ($args ~* ^product_category=28$){ rewrite ^/page142$ /page142_product_category-28? permanent; }
if ($args ~* ^product_id=539$){ rewrite ^/page103$ /page103_product_id-539? permanent; }
if ($args ~* ^product_id=538$){ rewrite ^/page103$ /page103_product_id-538? permanent; }
if ($args ~* ^product_id=537$){ rewrite ^/page103$ /page103_product_id-537? permanent; }
if ($args ~* ^product_id=579$){ rewrite ^/page103$ /page103_product_id-579? permanent; }
if ($args ~* ^product_id=578$){ rewrite ^/page103$ /page103_product_id-578? permanent; }
if ($args ~* ^product_id=536$){ rewrite ^/page103$ /page103_product_id-536? permanent; }
if ($args ~* ^product_id=535$){ rewrite ^/page103$ /page103_product_id-535? permanent; }
if ($args ~* ^product_id=534$){ rewrite ^/page103$ /page103_product_id-534? permanent; }
if ($args ~* ^product_id=587$){ rewrite ^/page103$ /page103_product_id-587? permanent; }
if ($args ~* ^product_id=53$){ rewrite ^/page103$ /page103_product_id-53? permanent; }
if ($args ~* ^product_id=588$){ rewrite ^/page103$ /page103_product_id-588? permanent; }
if ($args ~* ^product_id=70$){ rewrite ^/page103$ /page103_product_id-70? permanent; }
if ($args ~* ^product_id=56$){ rewrite ^/page103$ /page103_product_id-56? permanent; }
if ($args ~* ^product_id=55$){ rewrite ^/page103$ /page103_product_id-55? permanent; }
if ($args ~* ^product_id=58$){ rewrite ^/page103$ /page103_product_id-58? permanent; }
if ($args ~* ^product_id=54$){ rewrite ^/page103$ /page103_product_id-54? permanent; }
if ($args ~* ^product_category=29$){ rewrite ^/page142$ /page142_product_category-29? permanent; }
if ($args ~* ^product_id=120$){ rewrite ^/page103$ /page103_product_id-120? permanent; }
if ($args ~* ^product_id=117$){ rewrite ^/page103$ /page103_product_id-117? permanent; }
if ($args ~* ^product_id=597$){ rewrite ^/page103$ /page103_product_id-597? permanent; }
if ($args ~* ^product_id=119$){ rewrite ^/page103$ /page103_product_id-119? permanent; }
if ($args ~* ^product_id=124$){ rewrite ^/page103$ /page103_product_id-124? permanent; }
if ($args ~* ^product_id=122$){ rewrite ^/page103$ /page103_product_id-122? permanent; }
if ($args ~* ^product_id=127$){ rewrite ^/page103$ /page103_product_id-127? permanent; }
if ($args ~* ^product_id=125$){ rewrite ^/page103$ /page103_product_id-125? permanent; }
if ($args ~* ^product_category=27$){ rewrite ^/page142$ /page142_product_category-27? permanent; }
if ($args ~* ^product_id=518$){ rewrite ^/page103$ /page103_product_id-518? permanent; }
if ($args ~* ^product_id=517$){ rewrite ^/page103$ /page103_product_id-517? permanent; }
if ($args ~* ^product_id=515$){ rewrite ^/page103$ /page103_product_id-515? permanent; }
if ($args ~* ^product_id=513$){ rewrite ^/page103$ /page103_product_id-513? permanent; }
if ($args ~* ^product_id=512$){ rewrite ^/page103$ /page103_product_id-512? permanent; }
if ($args ~* ^product_id=511$){ rewrite ^/page103$ /page103_product_id-511? permanent; }
if ($args ~* ^product_id=510$){ rewrite ^/page103$ /page103_product_id-510? permanent; }
if ($args ~* ^product_id=509$){ rewrite ^/page103$ /page103_product_id-509? permanent; }
if ($args ~* ^product_category=56$){ rewrite ^/page142$ /page142_product_category-56? permanent; }
if ($args ~* ^product_id=200$){ rewrite ^/page103$ /page103_product_id-200? permanent; }
if ($args ~* ^product_id=195$){ rewrite ^/page103$ /page103_product_id-195? permanent; }
if ($args ~* ^product_id=181$){ rewrite ^/page103$ /page103_product_id-181? permanent; }
if ($args ~* ^product_id=194$){ rewrite ^/page103$ /page103_product_id-194? permanent; }
if ($args ~* ^product_id=192$){ rewrite ^/page103$ /page103_product_id-192? permanent; }
if ($args ~* ^product_id=179$){ rewrite ^/page103$ /page103_product_id-179? permanent; }
if ($args ~* ^product_id=178$){ rewrite ^/page103$ /page103_product_id-178? permanent; }
if ($args ~* ^product_id=443$){ rewrite ^/page103$ /page103_product_id-443? permanent; }
if ($args ~* ^product_category=71$){ rewrite ^/page142$ /page142_product_category-71? permanent; }
if ($args ~* ^product_id=592$){ rewrite ^/page103$ /page103_product_id-592? permanent; }
if ($args ~* ^product_id=593$){ rewrite ^/page103$ /page103_product_id-593? permanent; }
if ($args ~* ^product_id=594$){ rewrite ^/page103$ /page103_product_id-594? permanent; }
if ($args ~* ^product_category=58$){ rewrite ^/page142$ /page142_product_category-58? permanent; }
if ($args ~* ^product_id=444$){ rewrite ^/page103$ /page103_product_id-444? permanent; }
if ($args ~* ^product_id=445$){ rewrite ^/page103$ /page103_product_id-445? permanent; }
if ($args ~* ^product_id=446$){ rewrite ^/page103$ /page103_product_id-446? permanent; }
if ($args ~* ^product_id=447$){ rewrite ^/page103$ /page103_product_id-447? permanent; }
if ($args ~* ^product_category=59$){ rewrite ^/page142$ /page142_product_category-59? permanent; }
if ($args ~* ^product_id=449$){ rewrite ^/page103$ /page103_product_id-449? permanent; }
if ($args ~* ^product_id=465$){ rewrite ^/page103$ /page103_product_id-465? permanent; }
if ($args ~* ^product_id=451$){ rewrite ^/page103$ /page103_product_id-451? permanent; }
if ($args ~* ^product_id=462$){ rewrite ^/page103$ /page103_product_id-462? permanent; }
if ($args ~* ^product_id=464$){ rewrite ^/page103$ /page103_product_id-464? permanent; }
if ($args ~* ^product_id=466$){ rewrite ^/page103$ /page103_product_id-466? permanent; }
if ($args ~* ^product_category=70$){ rewrite ^/page142$ /page142_product_category-70? permanent; }
if ($args ~* ^product_id=454$){ rewrite ^/page103$ /page103_product_id-454? permanent; }
if ($args ~* ^product_id=463$){ rewrite ^/page103$ /page103_product_id-463? permanent; }
if ($args ~* ^product_category=68$){ rewrite ^/page142$ /page142_product_category-68? permanent; }
if ($args ~* ^product_id=448$){ rewrite ^/page103$ /page103_product_id-448? permanent; }
if ($args ~* ^product_id=457$){ rewrite ^/page103$ /page103_product_id-457? permanent; }
if ($args ~* ^product_id=450$){ rewrite ^/page103$ /page103_product_id-450? permanent; }
if ($args ~* ^product_id=452$){ rewrite ^/page103$ /page103_product_id-452? permanent; }
if ($args ~* ^product_id=453$){ rewrite ^/page103$ /page103_product_id-453? permanent; }
if ($args ~* ^product_id=458$){ rewrite ^/page103$ /page103_product_id-458? permanent; }
if ($args ~* ^product_id=459$){ rewrite ^/page103$ /page103_product_id-459? permanent; }
if ($args ~* ^product_id=460$){ rewrite ^/page103$ /page103_product_id-460? permanent; }
if ($args ~* ^product_id=461$){ rewrite ^/page103$ /page103_product_id-461? permanent; }
if ($args ~* ^product_category=60$){ rewrite ^/page142$ /page142_product_category-60? permanent; }
if ($args ~* ^product_id=531$){ rewrite ^/page103$ /page103_product_id-531? permanent; }
if ($args ~* ^product_id=530$){ rewrite ^/page103$ /page103_product_id-530? permanent; }
if ($args ~* ^product_id=528$){ rewrite ^/page103$ /page103_product_id-528? permanent; }
if ($args ~* ^product_id=529$){ rewrite ^/page103$ /page103_product_id-529? permanent; }
if ($args ~* ^product_category=61$){ rewrite ^/page142$ /page142_product_category-61? permanent; }
if ($args ~* ^product_category=62$){ rewrite ^/page142$ /page142_product_category-62? permanent; }
if ($args ~* ^product_id=521$){ rewrite ^/page103$ /page103_product_id-521? permanent; }
if ($args ~* ^product_id=522$){ rewrite ^/page103$ /page103_product_id-522? permanent; }
if ($args ~* ^product_id=523$){ rewrite ^/page103$ /page103_product_id-523? permanent; }
if ($args ~* ^product_id=524$){ rewrite ^/page103$ /page103_product_id-524? permanent; }
if ($args ~* ^product_id=525$){ rewrite ^/page103$ /page103_product_id-525? permanent; }
if ($args ~* ^product_id=526$){ rewrite ^/page103$ /page103_product_id-526? permanent; }
if ($args ~* ^product_id=527$){ rewrite ^/page103$ /page103_product_id-527? permanent; }
if ($args ~* ^product_id=533$){ rewrite ^/page103$ /page103_product_id-533? permanent; }
if ($args ~* ^product_id=532$){ rewrite ^/page103$ /page103_product_id-532? permanent; }
if ($args ~* ^product_category=64$){ rewrite ^/page142$ /page142_product_category-64? permanent; }
if ($args ~* ^product_category=65$){ rewrite ^/page142$ /page142_product_category-65? permanent; }
if ($args ~* ^product_category=66$){ rewrite ^/page142$ /page142_product_category-66? permanent; }
if ($args ~* ^product_category=67$){ rewrite ^/page142$ /page142_product_category-67? permanent; }
if ($args ~* ^product_id=67$){ rewrite ^/page103$ /page103_product_id-67? permanent; }
if ($args ~* ^product_id=59$){ rewrite ^/page103$ /page103_product_id-59? permanent; }
if ($args ~* ^product_id=57$){ rewrite ^/page103$ /page103_product_id-57? permanent; }
if ($args ~* ^product_category=35$){ rewrite ^/page142$ /page142_product_category-35? permanent; }
if ($args ~* ^product_id=206$){ rewrite ^/page103$ /page103_product_id-206? permanent; }
if ($args ~* ^product_id=211$){ rewrite ^/page103$ /page103_product_id-211? permanent; }
if ($args ~* ^product_id=224$){ rewrite ^/page103$ /page103_product_id-224? permanent; }
if ($args ~* ^product_id=223$){ rewrite ^/page103$ /page103_product_id-223? permanent; }
if ($args ~* ^product_id=209$){ rewrite ^/page103$ /page103_product_id-209? permanent; }
if ($args ~* ^product_id=222$){ rewrite ^/page103$ /page103_product_id-222? permanent; }
if ($args ~* ^product_id=214$){ rewrite ^/page103$ /page103_product_id-214? permanent; }
if ($args ~* ^product_id=220$){ rewrite ^/page103$ /page103_product_id-220? permanent; }
if ($args ~* ^product_category=32$){ rewrite ^/page142$ /page142_product_category-32? permanent; }
if ($args ~* ^product_category=37$){ rewrite ^/page142$ /page142_product_category-37? permanent; }
if ($args ~* ^product_id=244$){ rewrite ^/page103$ /page103_product_id-244? permanent; }
if ($args ~* ^product_id=243$){ rewrite ^/page103$ /page103_product_id-243? permanent; }
if ($args ~* ^product_id=240$){ rewrite ^/page103$ /page103_product_id-240? permanent; }
if ($args ~* ^product_id=239$){ rewrite ^/page103$ /page103_product_id-239? permanent; }
if ($args ~* ^product_id=233$){ rewrite ^/page103$ /page103_product_id-233? permanent; }
if ($args ~* ^product_category=30$){ rewrite ^/page142$ /page142_product_category-30? permanent; }
if ($args ~* ^product_id=501$){ rewrite ^/page103$ /page103_product_id-501? permanent; }
if ($args ~* ^product_id=504$){ rewrite ^/page103$ /page103_product_id-504? permanent; }
if ($args ~* ^product_id=505$){ rewrite ^/page103$ /page103_product_id-505? permanent; }
if ($args ~* ^product_id=506$){ rewrite ^/page103$ /page103_product_id-506? permanent; }
if ($args ~* ^product_id=507$){ rewrite ^/page103$ /page103_product_id-507? permanent; }
if ($args ~* ^product_id=508$){ rewrite ^/page103$ /page103_product_id-508? permanent; }
if ($args ~* ^product_id=519$){ rewrite ^/page103$ /page103_product_id-519? permanent; }
if ($args ~* ^product_id=516$){ rewrite ^/page103$ /page103_product_id-516? permanent; }
if ($args ~* ^product_id=520$){ rewrite ^/page103$ /page103_product_id-520? permanent; }
if ($args ~* ^product_category=36$){ rewrite ^/page142$ /page142_product_category-36? permanent; }
if ($args ~* ^product_id=573$){ rewrite ^/page103$ /page103_product_id-573? permanent; }
if ($args ~* ^product_id=574$){ rewrite ^/page103$ /page103_product_id-574? permanent; }
if ($args ~* ^product_id=575$){ rewrite ^/page103$ /page103_product_id-575? permanent; }
if ($args ~* ^product_category=33$){ rewrite ^/page142$ /page142_product_category-33? permanent; }
if ($args ~* ^product_id=494$){ rewrite ^/page103$ /page103_product_id-494? permanent; }
if ($args ~* ^product_id=496$){ rewrite ^/page103$ /page103_product_id-496? permanent; }
if ($args ~* ^product_id=497$){ rewrite ^/page103$ /page103_product_id-497? permanent; }
if ($args ~* ^product_id=498$){ rewrite ^/page103$ /page103_product_id-498? permanent; }
if ($args ~* ^product_id=499$){ rewrite ^/page103$ /page103_product_id-499? permanent; }
if ($args ~* ^product_id=576$){ rewrite ^/page103$ /page103_product_id-576? permanent; }
if ($args ~* ^product_id=495$){ rewrite ^/page103$ /page103_product_id-495? permanent; }
if ($args ~* ^product_id=503$){ rewrite ^/page103$ /page103_product_id-503? permanent; }
if ($args ~* ^product_category=28&brd=1$){ rewrite ^/page142$ /page142_product_category-28-brd-1? permanent; }
if ($args ~* ^lightbox=dataItem-iyomplrz$){ rewrite ^/$ /lightbox-dataItem-iyomplrz? permanent; }
if ($args ~* ^lightbox=dataItem-iyozdzlh1$){ rewrite ^/$ /lightbox-dataItem-iyozdzlh1? permanent; }
if ($args ~* ^lightbox=image23h7$){ rewrite ^/$ /lightbox-image23h7? permanent; }
if ($args ~* ^product_id=54&brd=1$){ rewrite ^/page103$ /page103_product_id-54-brd-1? permanent; }
if ($args ~* ^product_id=55&brd=1$){ rewrite ^/page103$ /page103_product_id-55-brd-1? permanent; }
if ($args ~* ^product_id=56&brd=1$){ rewrite ^/page103$ /page103_product_id-56-brd-1? permanent; }
if ($args ~* ^product_id=57&brd=1$){ rewrite ^/page103$ /page103_product_id-57-brd-1? permanent; }
if ($args ~* ^product_id=58&brd=1$){ rewrite ^/page103$ /page103_product_id-58-brd-1? permanent; }
if ($args ~* ^product_id=587&brd=1$){ rewrite ^/page103$ /page103_product_id-587-brd-1? permanent; }
if ($args ~* ^product_id=59&brd=1$){ rewrite ^/page103$ /page103_product_id-59-brd-1? permanent; }
if ($args ~* ^product_id=67&brd=1$){ rewrite ^/page103$ /page103_product_id-67-brd-1? permanent; }
if ($args ~* ^product_id=70&brd=1$){ rewrite ^/page103$ /page103_product_id-70-brd-1? permanent; }
if ($args ~* ^product_category=25&brd=1$){ rewrite ^/page142$ /page142_product_category-25-brd-1? permanent; }
if ($args ~* ^product_category=62&brd=1$){ rewrite ^/page142$ /page142_product_category-62-brd-1? 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
