Re: Search engine question
by Gregor Pirnaver <gregor.pirnaver(at)email.si>
|
Date: |
Fri, 6 Apr 2001 07:05:58 +0200 |
To: |
hwg-basics(at)mail.hwg.org |
References: |
localhost abbeyink |
|
todo: View
Thread,
Original
|
|
Tamara wrote:
> At 04:53 PM 4/5/2001 -0400, jim barchuk wrote:
> > > My question is: does a search engine spider dynamically generated
> > > pages. For example, if I have a page http://myhost.com/ that has links
> > > in the page of the form
> > > http://myhost.com/apage.php?param1=foo¶m2=bar
> > > Will the engine spider that second link?
>
> On a positive note, there are /supposed/ to be php scripts out there that
> will alias the url so that it will be spidered.
http://myhost.com/apage.php/param1/foo/param2/bar
Try something like this:
<?php
$dynamic = explode(".php/", $REQUEST_URI);
$url_array = explode("/", $dynamic[1]);
$i = 0;
while($i < count($url_array)) {
$$url_array[$i]=$url_array[$i+1];
$i = $i + 2;
}
?>
--
Gregor @ Mandrake 7.2 -> KDE 2.0 -> Kmail 1.1.99 -> ;-)
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA