I've just finished making a website for my dad and need to get it on line. He has a domain already (and I have access to the admin panel for that on 'fasthosts') and my mum already has some server space which she rents jointly with an old colleague of hers who handles most of the administration. My questions is:
How do I change the DNS records of the domain to point to the server my mum already has? Once both domains are pointing there I have some information on how to use URL rewriting to "split them up" again. In fact I'll post that below and would appreciate any feedback on that too.
Sorry for such a basic question, but my knowledge of how domain hosting and name servers and DNS works is poor. I have tried to Google my way around this, but nothing ties up very well with the options I have in the control panel (which is perhaps intentionally confusing).
Many thanks!
That information about rewriting:
Running multiple sites from a single virtual server
If you've registered two or more domains, each running as a separate website, usually this would require each domain to run as a separate virtual server. However, URL Rewriting will allow you to run multiple sites using just a single virtual server.
For example, if you have the domains www.site1.com and www.site2.com, simply place each site in a folder under your htdocs folder with the same name as the domain, i.e. /site1 and /site2.
The code required would be set out in the following format:
<rule name="Site1"> <match url="(.*)" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_HOST}" pattern="site1.com" /> </conditions> <action type="Rewrite" url="/site1/{R:0}" /> </rule>
Just keep adding new rules for any new sites. If you would like 2 sites to point to the same folder, you can just add in more conditions:
<rule name="Site1"> <match url="(.*)" /> <conditions logicalGrouping="MatchAny"> <add input="{HTTP_HOST}" pattern="site1a.com" /> <add input="{HTTP_HOST}" pattern="site1b.com" /> <add input="{HTTP_HOST}" pattern="site1c.com" /> </conditions> <action type="Rewrite" url="/site1/{R:0}" /> </rule>