Answer the question
In order to leave comments, you need to log in
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
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
пользователь в dns к своему домену указывает вашь сервер,
.htaccess файл создаете (если еще нет) в корне персональной папки сайта пользователя
# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html example.com/newdirectory/newfile.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question