Removes the QUERY_STRING from the URL - htaccess

by Rekha 2010-02-17 13:42:42

Removes the QUERY_STRING from the URL - htaccess
If the QUERY_STRING has any value at all besides blank than the?at the end of /login.php? tells mod_rewrite to remove the QUERY_STRING from login.php and redirect.


RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} .
RewriteRule ^login.php /login.php? [L]

Tagged in:

1319
like
0
dislike
0
mail
flag

You must LOGIN to add comments