Thanks for the tip. I realised after posting the message
that it was a little confusing.
I do not want an error to occur but instead pass the
url that what was requested to a php script and
from whatever url was requested generate
the correct page.
Rather like a get string but the data is stored in
the url before the ?.
Thanks for your help though.
Steve