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

From: Date: Sat, 25 Oct 2003 12:08:18 +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-10422@lists.php.net to get a copy of this message
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


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