- - Code, Content, and Presentation
- -- Apache Web Server
- ---- 301 Canonical redirect - non-www to www but it messes with subdomains
g1smd - 2:12 pm on Aug 2, 2011 (gmt 0)
That looks a bit bettter, but $2 will be undefined (empty) all the time, so will redirect to root for all requests.
Lose the [NC] flag. It blurs the wanted "exactly" match, by allowing "exactly" and "similar but with different case". You need "exactly".
Thread source: http://www.webmasterworld.com/apache/4345202.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com