[mod_rewrite] uitzonderingen maken

Pagina: 1
Acties:
  • 44 views sinds 30-01-2008

  • RickyHeijnen
  • Registratie: Maart 2005
  • Laatst online: 30-04-2025
Ik wil met mod_rewrite mooie url's maken, het werkt alleen niet zoals ik wil.

Dit is mijn code:
code:
1
2
3
4
RewriteEngine On
RewriteCond %{REQUEST_URI} !images [NC]
RewriteCond %{REQUEST_URI} !includes [NC]
RewriteRule ^(.*)$ index.php?pagina=$1 [L]


Het is dus de bedoeling dat hij http://www.mijnsite.nl/contact doet als http://www.mijnsite.nl/index.php?pagina=contact, behalve bij de standaard mappen.
Veel gezoek en het bekijken van tutorials later werkt het nog steeds niet.

Als ik $_GET['pagina'] echo, krijg ik elke keer index.php te zien, ipv contact. Hoe komt dat, wat doe ik niet goed??

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 11-03 14:33

NMe

Quia Ego Sic Dico.

Dubbel.

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Dit topic is gesloten.