Re: search engine friendly site
| From: | php at server dot mediawaveonline dot com | Date: | Thu, 14 Sep 2000 17:18:05 +0000 |
| Subject: | Re: search engine friendly site | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16815@lists.php.net to get a copy of this message | ||
even better I allways put the domain name in too..
echo "<img src='http://$SERVER_NAME/images/images.gif'>\n";
With the server_name in there there is no possible way any browser /
search engine can get messed up.
Chris Lee
On Thu, 14 Sep 2000, Josh Davidson wrote:
> <snip>
> >
> > All that works great. My problem is when I generate html like:
> > <img src="images/image.gif">
> >
> > Apache seems to look for the images in:
> > mysite.com/local/param1/param2/param3/images/images.gif
> > Ofcourse that is just a "virtual path" which I decode in the local script.
> >
> > So how do I get apache to load the images from mysite.com/images/image.gif ?
>
> try <img src="/images/image.gif">
> (note the extra slash. that tells the server to start looking from the
> root level, rather than what it believes to be your current position in
> the heirarchy).
>
> -- josh
>
> // josh davidson
> // graphic design for web and print
> // php,c,c++,pascal programming
> //
> // 850-255-0830
> // aim: netsmiley
> // changelog: http://www.filmpensacola.com/jwd/
>
>
>