Hello
I have several virtualhosts configured on my serveur, tha let me use different sub-domains for different purposes.
example
www.mysite.com
blog.mysite.com
lll.mysite.com
and even a
*.mysite.com (that redirects all the unknowned subdomains to a single script - In fact, it redirects *.* that comes on that server - this is the last rule declared on my conf file.)
Let say that I owned mysite.net, mysite.org and mysite.co.uk domain names.
What I what to do is whatever domain name is used by the visitor, the server automatically changes it to .com.
Example
www.mysite.org -> www.mysite.com
blog.mysite.co.uk/this/is/a/page -> blog.mysite.com/this/is/a/page
...
Do I have to create a RewriteRule for each vistualhost ? Is there a possibility to write that rule in the httpd.conf, outside the virtualhost declaration ?
Thanks