search engine friendly site

From: Date: Thu, 14 Sep 2000 11:47:37 +0000
Subject: search engine friendly site
Groups: php.general 
Request: Send a blank email to php-general+get-16753@lists.php.net to get a copy of this message
I read the article on phpbuilder.com about building search engine friendly site. (http://www.phpbuilder.com/columns/tim20000526.php3) I have set up my apache with: <Location /local> ForceType application/x-httpd-php3 </Location> local is a php script which prints out something based on the parameters. The parameters are passed like: mysite.com/local/param1/param2/param3 ... I use a array explode to parse the URI ( $url_array = explode("/",$REQUEST_URI); ) 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 ? regards Bård Farstad <bf@ez.no>

« previous php.general (#16753) next »