I just got a new virtual dedicated server from 1&1 running linux and plesk 9. I have a domain - domain1.com - with my site. The site also have forums at www.domain1.com/forums.
I also have more domains - domain2.com, domain3.com, domain4.com, and domainforums.com.
I setup a domain alias in plesk with domain2.com, just to see what it does. Now when people go to domain2.com, it loads my site at domain.com, but the address bar still says domain2.com.
I have three issues I need some help with, as I have little experience with Linux, Apache, mod_rewrite, and .htaccess stuff.
Number 1: I'd like all my alternative domains to go to domain.com, and do a full redirect so that the alternative domains don't show in the address bar. So if you go to www.domain2.com, or domain3.com, etc. (with or without the www. before the domain), it will send you to www.domain.com. I'd also like it to send the full path and query string, so if you go to www.domain2.com/thing/stuff/yeah.html?name=John it redirects you to www.domain.com/thing/stuff/yeah.html?name=John. It seems like a common easy problem, but I need help.
Second, I'd like the domainforums.com domain to do the same as above, only domainforums.com should go to www.domain.com/forums, and domainforums.com/viewthread.php?id=123 should go to www.domain.com/forums/viewthread.php?id=123. Understand?
And third, I'd like domain.com to always reformat itself to www.domain.com in the address bar for my visitors just to make things consistent.
If anyone can help with these issues I would be super appreciative!