I am trying to wrap my mind around a specific redirect scenario.
Suppose we have two folders, one named “blog” and another named “calendar”.
Page “blog/post-1” was move to the “calendar” folder so it’s now “calendar/post-1”, therefore “blog/post-1” will give a 404 error.
What i want is to check if a page under “blog” exists and if it does not, look for it under “calendar”.
If the page is found under calendar then the user should be redirected to it.
Any ideas of how this could be done?
Thanks in advance.