Hello, I'm looking for a -I guess- real simple script. I want to redirect "www.domain.com/login/" to "www.domain.com/index.php?page=login" If possible it would be nice if the script also redirected "www.domain.com/login" to the same target. Thanks in advance! Jelle
You will sure need .htaccess here. You could use the script below: RewriteEngine On RewriteRule ^login(.*)$ http://www.domain.com/index.php?page=login [R=301,L]
Use /? to make the trailing slash optional RewriteEngine On RewriteRule ^login/?$ http://www.domain.com/index.php?page=login [R=301,L]
thanks a lot! i got it working like this: RewriteEngine On RewriteRule ^login(.*)$ index.php?page=login