I am trying to have a URL that would look like:
mysite.com/@username
Which would route to something like:
subdomain.mysite.com/user/@username
I'm terrible with RewriteRules and have been struggling to try to get this to work. Some of the things I have tried are:
RewriteRule subdomain.mysite.com/user/(.*) mysite.com/$1 [R=302,NC,L]
RewriteRule ^(.@)(.*) subdomain.mysite.com/user/$1 [R=302,NC]
RewriteRule ^(.@)([A-Za-z0-9_]+) mysite.com/user/$1 [R=302,NC]
I realize those probably make absolutely no sense. Every time I try to get my head around how the routing works, I get turned around and start writing crap like you see above.
Any pointers would be appreciated. Thanks.