Index.php pagina
<?
echo "Index.php pagina ";
show_source(__FILE__);
?>
<h1>Voorbeeld van de .htaccess 3 variabelen als mapnaam. (per categorie) </h1></br>
RewriteEngine On</br>
RewriteRule ^(.*)/(.*)/(.*) index.php?pagina=$1&sub=$2&$3 </br>
Normaal zo:
<a href="product.php?naam=Laptop&categorie=Computer&prijs=500">product.php?naam=Laptop&categorie=Computer&prijs=500</a>
Door .htaccess kan het nu zo:
<a href="Laptop/Computer/500">product.php?naam=Laptop&categorie=Computer&prijs=500</a>