Re: search engine friendly site

From: Date: Thu, 14 Sep 2000 19:12:41 +0000
Subject: Re: search engine friendly site
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16820@lists.php.net to get a copy of this message
better still... leave it the way it is and put a <base href="http://mysite.com/"> at the top. that makes it easier to edit the path. (and saves a few bytes on each url) - Mark On Thu, 14 Sep 2000 10:18:05 -0700 (PDT), php@server.mediawaveonline.com (php@server.mediawaveonline.com) wrote: >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/ >> >> >> > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list- >admin@lists.php.net

« previous php.general (#16820) next »