Re: Building my site... again

From: Date: Fri, 25 Jan 2002 15:52:58 +0000
Subject: Re: Building my site... again
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82115@lists.php.net to get a copy of this message
> Now. I would of course like for my site to be listed in the search engines, > and I wouldn't mind getting search hits on both cars and ferrari. But. Will > the web spiders and web crawlers ever follow a link like > index.php?page=cars&subpage=ferrari and will they ever index what they find > there, and, and, and, and... > > Well... does anyone understand what I'm asking here? WOuld this be a good > way to build my site to ensure getting hits from search engines, or should I > do this some other way? Anyone know? To ensure that the search engines like you and your pages, you can make your URLs appear more normal by doing something like this: URL= http://you.com/index.php/cars/ferrari Then... in your code you can access the additional data by looking at the $PATH_INFO variable: <? $pathitems = explode("/",$PATH_INFO); $page = $pathitems[1]; $subpage = $pathitems[2]; ?> Hope this helps, Daniel J. Lashua

« previous php.general (#82115) next »