Quote:
Originally Posted by regeneration
As you know, if someone is visiting a deleted thread on Vbulletin, he will get an "invalid thread" page. What I'm trying to do is... to add a 301 redirect to forum index page after a few seconds inside the "invalid thread" page, but with PHP redirect (not meta refresh).
I've tried to create a PHP function that does that, but it doesn't work (blank page).
|
A PHP redirect is done
in the header of the page. Since you're already sending a page saying "invalid thread", you can't add the redirect later in the page.
Instead, maybe you could create an HTML form with only a submit button... which then takes the viewer to whatever page you wanted to redirect them to. The form would ideally display
inside the error message box, so that it's obvious to the viewer that they should click it to return to your forumhome.