RewriteEngine on
RewriteRule ^@([_a-zA-Z0-9\-]*)$ redirect.php?p=$1
