[edited by: Ocean10000 at 5:44 pm (utc) on Sep 24, 2014] [edit reason] Examplified. [/edit]
phranque
6:10 pm on Sep 24, 2014 (gmt 0)
you could achieve that using mod_rewrite - a single RewriteRule with a pattern that matches those specific paths.
however, if you are serving multiple virtual hostnames on that server configuration you'll need a preceding RewriteCond directive to exclude other hostname requests.
"announcements", etc are not in the query string, they are in the url path. also, using (.*)$ in this application unnecessary since you aren't using the capture group in your RewriteRule.
this is where you should be examining the url path for "announcements", etc. however, from your examples in the OP i don't see where the "firstnamelastname" exists in the url path so not sure where your subdomain name can be captured from the request.
ivanvias
2:57 pm on Sep 25, 2014 (gmt 0)
For firstname lastname I am using wildcard subdomains so it can be any a-z 0-9.
Basically eg.
I want to permanent redirect http://timwillis.example.com/announcements and http://timwillis.example.com/biography to just