Re: Apache odd behavior
| From: | Paul M Foster | Date: | Tue, 17 Feb 2009 06:19:24 +0000 |
| Subject: | Re: Apache odd behavior | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288405@lists.php.net to get a copy of this message | ||
On Mon, Feb 16, 2009 at 08:53:24PM +0000, Ashley Sheridan wrote:
<snip>
> I've read through this thread and not noticed anyone mention the <base>
> tag. This allows you to specify a URL to which relative ones are mapped
> to, which could be just what you're looking for, as I believe all the
> browsers support it (the tag has been around for donkeys years, so I'd
> be surprised if any browsers didn't support it)
You da man!
I've never heard of this tag, but it shows up on my Visibone cheatbook,
and my HTML 4 reference. Moreover, it works. When the URL in the base
tag is specified as:
<base href="http://mysite.com/">
and, for example, a graphic link is done this way:
<img src="graphics/myportrait.gif">
It appears to override other considerations with regard to pathing.
I've already chosen an alternative solution, but I'll definitely keep
this in mind for future reference. Thanks, much.
Paul
--
Paul M. Foster