A
A
Alexander Konovalov2018-11-01 16:57:05
htaccess
Alexander Konovalov, 2018-11-01 16:57:05

How to set up subdomains?

Hello! I'm working on a bulletin board. When you select a city, the page opens on a subdomain, for example, msk.site.ru. But when opened, the browser gives an error: Cannot access the site Could not find the IP address of the server. I understand you need some setting in htaccess?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2018-11-01
@Huf

First you need to add subdomains or wildcard (asterisk) to DNS. tyts
Then set up a webserver.
Therefore, htaccess will already reach (but this is not accurate).

R
Rsa97, 2018-11-01
@Rsa97

You misunderstand.
First you need to add A-records to DNS for each subdomain or wildcard-domain *.site.ru.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question