Friday, April 2, 2010

htaccess : Check for a key in QUERY_STRING

Uses a RewriteCond Directive to check QUERY_STRING for passkey, if it doesn’t find it it redirects all requests for anything in the /logged-in/ directory to the /login.php script.

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} !passkey
Rewrite

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home