I was developing a new feature for a client, and deployed it live today. However, due to circumstances out of my control, they decided to implement an alternative solution and asked me to implement a temporary redirect.
This feature was a standalone full screen flash app that did not fit the site theme at all. So, I implemented the page as a custom
html--pagename.tpl.php file and loaded the page-specific JS and CSS. It is a custom template for an existing content type.
Now, since the client wants a temporary redirect, I added
as the first line of PHP code in the template to redirect any access to that URL to the index page. However, this only works if the user is logged in. Anyone else can view this page and the header code seems to be ignored for some reason.
This URL loads regardless of the Published status set to Published or Unpublished. In the morning, I will modify the
.htaccess to execute a 302 redirect, but would like an explanation for this behavior for future reference.