Domain redirection in virtual store

2

Good morning!

I am finalizing the development of a virtual store that I will work with for rent. So far so good: I have the following problem.

I want to let all clients have always used the same administrative system and store, but of course with their respective database.

Example: www.shoplivre.com.br/cliente01

More wanted to surf the url of the client. How can I do this? Is it possible?

Example: www.lojamil.com.br

    
asked by anonymous 18.05.2015 / 19:10

1 answer

2

Yes, it is possible. But for the answer to be good, we need to know what HTTP server technology we're dealing with.

The technique is simple and is based on your DNS records: having the domain registered, just make it point to the correct subdomain through the CNAME record. Here's a good introduction on CNAME . Here you have more details about how it works for Registro.br .

In addition, you can still have another machine control the domain for you by setting MASTER and SLAVE entries in your DNS record. By setting MASTER and SLAVE instead of manual entries, you are telling the DNS record authority (the Register.br is a registration authority) that another machine will dynamically update DNS records without you ever having to enter the panel and modify. Hostgator offers this type of service and teaches you step-by-step here .

Finally, the configuration over which subdomain your HTTP server will return depends on the technology.

    
19.05.2015 / 05:34