I need to rewrite those url:
rewrite /shop.php?category=catergory1 http://example.com/c123 permanent;
rewrite /shop.php?category=category2 http://example.com/c234 permanent;
but get "No input file specified" instead of redirecting.
how i should properly write those ?
p.s. i have about one hundred of links like
^/shop.php?category=camp&subcategory=&showitem=26
^/shop.php?category=stove&subcategory=&showitem=14
and need redirect all of them into 2 different urls - all category=camp to /url1 and all category=stove to /url2 i dont need all of the parameters other than first one in base url.
p.p.s i should do about 2 thousand permanent redirects for my project. could the processing of this redirects be reduce nginx working speed ?