@mercime, thanks for the reply, but the cat list is not the issue.
Here’s the beginning of the story: I have a common WP structure with 200+ categories, which are used for regular WP posts. I want to have additional functionality (like custom post type), but without cloning that tree – using the same cat structure.
So URL for a post in WP look like /parentcat/subcat/
And that additional “post type” URL shall be like /page/parentcat/subcat/
I would parse the URL and show the content for that subcat.
But when you try to get non-existent URL (I don’t want to recreate the whole tree, it’s really big), you get 404.
What can I use to make that /page/ template work, not 404 template?