Forum Moderators: phranque
For example, my site is accessible from my regular www.mysiteurl.com but also from here:
webhostserver1.webhostname.net/~myusername/
If someone gets there using the above URL I want them directed to automatically redirect to www.mysiteurl.com.
As a rule, I always ask first before messing with .HTACCESS. Learned my lesson a few times already. ;)
That is, if the requested hostname is NOT *exactly* your canonical hostname, then redirect the request to the canonical domain. No variation whatsoever in the canonical hostname should be allowed -- the match should be exact.
Jim