Mobile app version of vmapp.org
Login or Join
Goswami781

: How do I change where a domain points to? 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

@Goswami781

Posted in: #Dns #Domains #MultipleDomains #WebHosting

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 site1.com and 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>

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami781

2 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

To change/set where a domain points to, you need to do 3 things:


Add the domain to your web server, which is typically done via a web host's administration panel unless you're running your own web server.
Add the domain to the nameservers you'll be using. This is also typically done via a web host's admin panel (usually handled automatically during step 1), but some peple may use separate DNS hosting services.
Change the nameservers that the domain points to in the registry of your TLD. This is pretty much always done via the registrar through which you registered the domain. The nameservers referred to are the ones in step 2.


So, typically, you log into your web host's admin panel, add the domain name, and write down the nameservers the web host tells you to use (e.g. ns1.example.com and ns2.example.com). Then you log into the account you used to register the domain and enter the previously noted nameservers. After that, you just need to wait for the DNS changes to propagate.

However, if you're using a dedicated server that isn't managed by a web host or through a web hosting panel like cPanel, then steps 1 and 2 may be a little more complicated. Hopefully, your mom's colleague knows enough about basic server administration to handle stuff on that end for you, because a novice should really be using managed hosting.

10% popularity Vote Up Vote Down


 

@Carla537

It depends if your hoster or provider has that option. Usually very cheap hoster doesn't allow you to change DNS records. Then you must use a redirection or an iframe. You can upload a html document with a 304 redirection header or an iframe pointing to the physical storage.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme