V
V
Vitaly Balayan2021-07-23 16:24:13
PHP
Vitaly Balayan, 2021-07-23 16:24:13

How to make a custom domain for a page?

Good afternoon. I am developing a service and faced the task of linking custom domains, for example, the mssg.me site, which allows you to link a domain to a page.

Using the example https://example.com/company-slug => https://company-name.com

It will be enough to point in which direction to dig, because a detailed tutorial could not be found.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2021-07-24
@402d

Shared won't work. At least a simple VPS.
There is such a concept Apache default VirtualHost
Requests are poured in there if other hosts did not have a match with the host name or alias.
well, you rake the host name already in PHP itself. The fan showed the basis.
Found in the database - super. No - draw a stub.
For a good client, you don’t need to strain with prescribing but records manually.
It is better to raise your own NS servers so that you only need to make a delegation in the domain registrar's office.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question