I have a redirect function in my script that redirects the user to another page after doing a fetch to make sure that page exists. My problem is that fetch returns an error which causes an error when reading the location header. Is there any way to suppress the fetch error so that I can write out the location header? Here's my code:
<A NAME=redirect PUBLIC>
<fetch $myurl>
<if $ret ne "">
<header NAME="Location" VALUE=$myurl>
<exit>
<else>
Page not found!
</if>
</A>
<A NAME=redirect PUBLIC>
<fetch $myurl>
<if $ret ne "">
<header NAME="Location" VALUE=$myurl>
<exit>
<else>
Page not found!
</if>
</A>