RE: [SMARTY] search engine friendly urls php/b/2 not php.php?b=2

From: Date: Sat, 25 Oct 2003 22:16:38 +0000
Subject: RE: [SMARTY] search engine friendly urls php/b/2 not php.php?b=2
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10426@lists.php.net to get a copy of this message
-----Original Message----- From: Christian Schloh [mailto:cs@subetha.de] Sent: Saturday, October 25, 2003 7:08 AM To: smarty-general@lists.php.net Subject: Re: [SMARTY] search engine friendly urls php/b/2 not php.php?b=2 Hello Andras, this topic is not related to smarty i think (wrong list!). But, maybe this helps: http://www.evolt.org/article/Search_Engine_Friendly_URLs_with_PHP_and_Apache /17/15049/index.html Christian Andras Kende wrote: > Hello All, > I looking for earch engine friendly code for smarty > Where urls like php/b/2 not php.php?b=2 > > I have a this php code, cant get to work... > > > if(isset($PATH_INFO)) { > $vardata = explode('/', $PATH_INFO); > $num_param = count($vardata); > if($num_param % 2 == 0) { > $vardata[] = ''; > $num_param++; > } > for($i = 1; $i < $num_param; $i += 2) > { > $$vardata[$i] = $vardata[$i+1]; > } > } > > Thanks, > > Andras Thanks! I also found some code and its works great now: $uriparams = explode("/",$_SERVER['PATH_INFO']); $sort = $uriparams[1]; $issuer = $uriparams[2]; http://www.creditapply.net Andras

« previous php.smarty.general (#10426) next »