HET .htaccess BESTAND   .htaccess[code]
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
[/code]

HET PHP BESTAND    class.url.php
<?php
/*************************************
= URL Engine door Harm Wellink =======
= Versie: 0.2B ===== info@harmweb.nl =
= Datum:  09-08-08 = www.harmweb.nl ==
**************************************/

/******************************************************
Deze URL Engine is het best te
gebruiken met het bijgeleverde .htaccess bestand. Lees
de site of de leesmij voor meer info
       *  *  *  *  *  *  *
Dit script is vrij te gebruiken zolang
mijn informatie helemaal bovenaan
blijft staan!
********************************************************/

class URLEngine
{
	private $URLInfo;
	private $URLItems;
	private $URLSplit;
	
	public function __construct( $teken = "/" )
	{
		$this->URLInfo = trim( $_SERVER[ 'PATH_INFO' ] );
		$this->URLItems = explode( $teken , $this->URLInfo );
		$this->URLSplit = $teken;
	}
	
	public function getProperty( $number )
	{
		if ( $number < 0 )
		{
			$number = abs( $number );
			if ( count ( $this->URLItems ) < $number )
			{
				return $this->URLItems;
			}
			else
			{
				return $this->URLItems[ count ( $this->URLItems ) - $number ];
			}
		}
		elseif ( count( $this->URLItems ) >= $number )
		{
			return $this->URLItems[$number];
		}
		else
		{
			return $this->URLItems;
		}
	}
	
	public function getPropertyValue( $variableName , $isSign , $expression = false)
	{
		if ( $isSign != $this->URLSplit )
		{
			foreach ( $this->URLItems as $item )
			{
				$func = ( $expression ? "split" : "explode" );
				$itemsplit = $func( $isSign , $item , 2 );
				
				if (( count ( $itemsplit ) == 2 ) && ( $itemsplit[0] == $variableName ))
				{
					$return .= $itemsplit[1]."<br />";
				}
			}
		}
		else
		{
			foreach ( $this->URLItems as $key => $item )
			{
				if ( $item == $variableName )
				{
					$return = $this->URLItems[ $key + 1 ];
				}
			}
		}
		return $return;
	}
}

?> 

[b]Voorbeeldje in gebruik:[/b]
<?php
require_once "class.url.php";
$engine = new URLEngine();
//Standaard is URLEngine("/") --> Dat is ook wat ik wil in dit voorbeeld ;)

echo $engine->getParameter(-1);
echo "<br />";
echo $engine->getParameterValue("phphulper","[-:;]",true);
?>
Op een url als bijvoorbeeld: www.jouwsite.nl/nieuwspagina/phphulper-ja/132 geeft hij als output:[code]132
ja[/code]