HI,
Modx : 2.2.1
Redirector : 1.03
When I use Redirector with published resources it is working correctly, but when I use it with a unpublished resources it going to the 404 page.
I want to use it with resource that are temporarily unpublished.
My question is, did Redirector work only with a published resource?
Thank for your answers
[ed. note: jber last edited this post 12 years, 11 months ago.]
Thank you for your answer.
But I found that the «cacheable option» for a resource has to be off, that solve my problem.
Thank again
MODX fires the OnPageNotFound event when a page is unpublished before redirecting to the error page, so you should be able to do the redirection in a plugin attached to that event.
The URL of the requested page should be available there as $_SERVER['REQUEST_URI'];