Options +ExecCGI

RewriteEngine On

RewriteRule ^altauth_register.php - [PT]
RewriteRule ^altauth_resetpass.php - [PT]
RewriteRule ^altauth_style.css - [PT]

RewriteRule ^_altauth - [F]

RewriteRule ^altauth_.+txt - [F]

RewriteRule (^.*/test22)$ $1/ [L]

RewriteRule  ^logout.html$ altauth.php?do_logout=1 [NE,L,QSA]

RewriteCond %{HTTP_COOKIE} altauth_uid=((longlife_)?[0-9a-f]+)
RewriteCond %{DOCUMENT_ROOT}/test22/_altauth/%1 -f
RewriteRule  ^.*$   - [L]

RewriteRule  ^(.*)$ altauth.php?return_url=http://%{HTTP_HOST}%{REQUEST_URI} [NE,L,QSA]
