Such a simple question I'm sure, but I can't find anything anywhere on this. I ran lots of tests - if the page is deleted the redirect doesn't work, but whether I unnpublish or keep the page published the redirects work ok. (For the main URL, the node and any alias) Not sure whether this is expected behaviour, or maybe a cacheing issue....?
So I guess my question is - which is best practice/likely to cause less issues in the future?
Redirect module 7.x-1.0-rc1
Test steps taken
Create page and alias
- create page /test-page
- URL path settings > uncheck auto alias and add alias /test-redirect
- view page > URL shows /test-redirect
- /test-page > redirects to /test-redirect
- /admin/config/search/redirect > shows redirect from /test-page to node/56042
- /admin/config/search/path > shows alias: /test-redirect, system: node/56042
Create redirect
- create redirect from /test-redirect to /proper-page
- /test-redirect > redirects to /proper-page
- /test-page > redirects to /proper-page
Unpublish node
- /test-page > redirects to /proper-page
- /test-redirect > redirects to /proper-page
- /admin/config/search/redirect > shows redirect from /test-page to node/56042
- /admin/config/search/path > shows alias: /test-redirect, system: node/56042
Delete node
- /node/56042 > 'Page not found'
- /test-page > 'Page not found'
- /test-redirect > 'Page not found'
- /admin/config/search/redirect > no redirect exists from /test-page to node/56042
- /admin/config/search/path > no alias: /test-redirect, system: node/56042