i'm trying to make a redirects from URL's with option ID to URL's with option URL_key i've assigned.
I have two column table with ID i'd like to substitute and URL_key as substitute.
11337 bar 11419 restaurant 11399 cafe 15477 painting
I have these URL's coming right now:
ifab.ru/art/kartiny/location/11399/style/15477
that i would like redirect to:
ifab.ru/art/kartiny/location/cafe/style/painting
You may say i could just take all the urls from website and substitute with replace, but they are being generated automatically and each combination may be different from each other, so i would like to catch the ID and rewrite it to URL_key.
Any thoughts and solutions are appreciated.
We run our server on nginx, no apache.