Y
Y
yoursmileua2016-02-09 21:04:10
PHP
yoursmileua, 2016-02-09 21:04:10

How to assign different domains to several sections of the site?

I can't find the answer on google! I need your help!
A simplified website builder website has been developed.
After simple manipulations, the user's site is available at an address like usersitename.mydomain.com.
Suddenly, the user wanted to change such an address to his personal one.
How to give him such an opportunity? How is it organized theoretically or programmatically?
Sincere thanks for your answers!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Andrey, 2016-02-09
@VladimirAndreev

the user must point to your server in the dns of the domain.
in the host configuration, the user's domain must be specified as an alias for usersitename.mydomain.com

N
Ninja Mate, 2016-02-09
@victorzadorozhnyy

пользователь в dns к своему домену указывает вашь сервер,
.htaccess файл создаете (если еще нет) в корне персональной папки сайта пользователя
# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html example.com/newdirectory/newfile.html

M
maximus, 2016-02-09
@maximus

в DNS домена создаете запись вида * А 8.8.8.8

Антон, 2016-02-10
@Lampochkagori

And the record on the IP address, such as Weebly or about.me
or CNAME as on a blogger

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question