PHP ver gevorderde |
|
Hey, ik wil als ik dit typ :
www.profielweb.nl/Admin in typ dat ik dan dit krijg :
http://www.prof...naam=Admin
Ik heb dit :
<IfModule mod_rewrite.c>
# Turn on Engine
RewriteEngine on
# Check if REQUEST_FILENAME is an existing file in the DOCUMENT_ROOT
RewriteCond %{REQUEST_FILENAME} !-f
# Check if REQUEST_FILENAME is an existing dir in the DOCUMENT_ROOT
RewriteCond %{REQUEST_FILENAME} !-d
# ReWrite the URL to profile page
# with GET variable 'name' set with the REQUEST_FILENAME value
RewriteRule ^(.+) http://www.profielweb.nl/index.php?pagina=profiel.php&naam=$_GET[naam] [L]
</IfModule>
<IfModule mod_rewrite.c> # Turn on Engine RewriteEngine on # Check if REQUEST_FILENAME is an existing file in the DOCUMENT_ROOT RewriteCond %{REQUEST_FILENAME} !-f # Check if REQUEST_FILENAME is an existing dir in the DOCUMENT_ROOT RewriteCond %{REQUEST_FILENAME} !-d # ReWrite the URL to profile page # with GET variable 'name' set with the REQUEST_FILENAME value RewriteRule ^(.+) http://www.profielweb.nl/index.php?pagina=profiel.php&naam=$_GET[naam] [L] </IfModule>
(alleen dit ?)
Alleen dit werkt niet?
|