|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19186 Redirect to acts weird.
Submitted: 2002-08-30 00:00 UTC Modified: 2002-09-05 14:55 UTC
From: webkid at webkid dot com Assigned:
Status: Not a bug Package: Website problem
PHP Version: 4.2.2 OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: webkid at webkid dot com
New email:
PHP Version: OS:


 [2002-08-30 00:00 UTC] webkid at webkid dot com
I have a script on my site that offers me a quick one-line command interface. I've integrated the ability to type in something to the effect of "php:function" to be redirected to via a Location header.
If I type something (say, "php:font") and the search engine rather than a real function appears, all the links are relative to my domain. Example:

type "php:font"
head "Location:"
top result links to ""

Important to note: If I type something to the effect of "php:date" (a real function) there is no problem.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-03 23:55 UTC]
What would you rather have show up?  If you goto a bogus function, we provide you with a search results with that name.  If you goto a valid function name you will receive the manual on that page. 
 [2002-09-04 18:29 UTC] webkid at webkid dot com
No, you're missing my point. I'm very happy that the search engine comes up.

But the problem is that if I redirect to the site, ALL of the URLs on the page are WRONG! However, this only applies to a search. Rather than leading to (if that was one of the intended results) it leads to

This is NOT the case when you redirect to the correct location.

Please note, again, that EVERY LINK leads to an *offsite* address. Not to I'm willing to bet this has something to do with the mirrors.
 [2002-09-05 03:59 UTC]
well duh.

we use relative links not absolute links, so we save the x bytes of bandwidth every time not needing to transfer them.

get over it.
 [2002-09-05 06:17 UTC]
1. We user relative links, not absolute.
2. A <base href=""> in the search result htdig template would actually solve the problem, but I don't know where is that template located...
 [2002-09-05 14:55 UTC]
Marking as bogus, I don't see this as a bug.  
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Feb 02 12:05:53 2023 UTC