We're using Wordpress for (amongst all) product catalog. We're using permalinks of the format
http://site/lang/shortname for all product pages. So, our flagship product would get
http://site/pl/flagshipproduct which leads to a page displaying the single post with that product, plus some extras (navigation, thumbs etc). The post itself is divided into subpages containing various goodies included using custom shortcodes.
The person managing content generated a new gallery (nggallery plugin) for the product, to be included with
[nggallery id=...] shortcode in specific place of the product page. Unfortunately he named it the same as the already existing product page.
http://site/pl/flagshipproduct ceased to display the product and began displaying the gallery. After some struggling we renamed the gallery, removed the autogenerated page for that gallery, and... well, now
http://site/pl/flagshipproduct began redirecting to frontpage, just like all our 404 pages.
I tried changing the permalink of the product.
http://site/pl/flagshipproduct2 works fine.
http://site/pl/flagshipproduct redirects to
http://site/pl/flagshipproduct2. If I rename the permalink back, the same mainpage redirect returns. If I change the permalink to something else, it keeps redirecting to the new permalink.
Now I want to get everything back to the way it was:
http://site/pl/flagshipproduct to display the page of the product and not redirect me anywhere.
I've checked, there is no gallery of that name, there is no page of that name, there is no category of that name, there is a tag of that name but its page is
/site/lang/tag/flagshipproduct and works correctly, doesn't seem to conflict.
Can you help me and find just what generates that redirect, then get rid of it freeing it up for the normal product permalink?