You cannot respond to an HTTP request with a resource and a message stating that the requested resource can be found with a different URL.
If you want to redirect after a period of time, you need to use a document-level solution (e.g. <meta> or JavaScript).
For instance:
function redirect() { location.replace("http://google.com"); } setTimeout(redirect, 10000);
That said ...
People read at different speeds, and people do not always pay constant attention to a particular browser window (start downloading something, and then switch to another tab is not uncommon).
I try to work with the rule of thumb that if a message is to be shown to the user, then it should be displayed until they reject it.
<p> you entered wrong data </p> <p> <a href="http://google.com/">continue</a> </p>
source share