[Zope] Odd Redirect Behaviour
Daniel Fairs
daniel.fairs@spiderplant.net
Tue, 12 Jun 2001 21:22:04 +0100
Hi,
I'm running Zope on the same machine as Apache+PHP. I'm not trying to do
anything clever - all I want to do is to redirect requests to
http://www.spiderplant.net/dan/redirect.php (that was index.html but I've
renamed it just for the mo) to http://www.spiderplant.net:8080/anticlimax/.
To do this, I'm using the following code in redirect.php:
<?php header("Location:
http://www.spiderplant.net:8080/anticlimax/index_html") ; ?>
Now, when I visit www.spiderplant.net/dan/redirect.php, the browser
correctly redirects. However, none of the URLs generated in the index_html
method have the port number in them; for example, this occurs:
<img src="http://www.spiderplant.net/anticlimax/titleImage" alt="Anticlimax
Front Page Image" height="80" width="600" border="0" />
Notice the 8080 is missing from the hostname.
Why is this occurring? What's so special about doing a redirect *to* Zope
that breaks it?
Feel free to visit the URLs above and see what I mean.
Yours confusedly,
Dan
PS: I'm currently using a single frame to do the 'redirection' but Netscape
sometimes chokes on it...
_________________________________________________________________
Daniel Fairs | daniel.fairs@spiderplant.net | www.spiderplant.net