F
F
froosty2014-09-05 14:25:29
PHP
froosty, 2014-09-05 14:25:29

How to link a separate domain to a site page?

Good day. There was such a problem. There are pages on a site like http://site.com/companies/cool_company. Those. on the 3rd segment of the url, data about the company is pulled out and displayed in the desired form. Is it possible to link a separate domain to this page? Well, that is, for this page to be available at http://site.com/companies/cool_company and at http://cool_company.com ? Prompt at least in what party to dig. Thanks in advance.
PS Although if you don’t just tell me which way to dig, but tell me in more detail - I will be doubly grateful =)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Trow_eu, 2014-09-05
@Trow_eu

a simple redirect from the domain will not work?
Or do you want this domain to be displayed?

V
VDolinsky, 2014-09-05
@VDolinsky

assign cool_company.com /path_on_server/website.com/companies/cool_company/
as the home directory, provided that there is access and both domains are bound to the same server

D
Dmitry, 2014-09-05
@mytmid

It probably makes sense to do the opposite:
on the site http://cool_company.com
add index.php with the content:
and the main thing is that the paths are absolute, for example, to styles.
PS The method may not be the best, but as an option :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question