Ajenti
Teadmiste baas
ET
English (EN)
Русский (RU)
Español (ES)
Français (FR)
Deutsch (DE)
Nederlands (NL)
Íslenska (IS)
Eesti (ET)
Қазақша (KK)
Українська (UK)
Dansk (DA)
Català (CA)
Polski (PL)
Logi sisse / Registreeri
ET
English (EN)
Русский (RU)
Español (ES)
Français (FR)
Deutsch (DE)
Nederlands (NL)
Íslenska (IS)
Eesti (ET)
Қазақша (KK)
Українська (UK)
Dansk (DA)
Català (CA)
Polski (PL)
Logi sisse / Registreeri
General
Küsimused
0
Kas tõesti?
Sobimatu
Rämps
Duplikaat
Redirect subdomains to main domain
MonsterCake
9 aastat tagasi
•
uuendaja
janxb
9 aastat tagasi
•
3
Is there a simple way to redirect all subdomains *.domain.com to domain.com?
Hääl
0
0
Tühista
Jälgi
Vastused
3
Vanemad enne
Uuemad enne
Vanemad enne
0
Lexy
9 aastat tagasi
in the nginx configuration of your site >> content tab >> custom confiquration
enter youre server_name like this
server_name yourdomain.com *.yourdomain.com;
Vasta
Kas tõesti?
Sobimatu
Rämps
Duplikaat
|
0
Roman Random
9 aastat tagasi
I tried this solution but it doesn't work for me. Also tried this to no avail:
server {
server_name *.mydomain.com;
rewrite ^(.*)
http://
mydomain.com$1 permanent;
}
Please, give me some hint!
Vasta
Kas tõesti?
Sobimatu
Rämps
Duplikaat
|
0
janxb
9 aastat tagasi
Please have a look at the answer
I posted in this thread
.
Edit: You then would add a nginx redirect in the created default host to redirect to the main domain.
Vasta
Kas tõesti?
Sobimatu
Rämps
Duplikaat
|
Customer support service
by UserEcho
Jaga
Teemade statistika
0
Hääled
3
Vastused
3
Jälgijad
7514
Vaatamised
enter youre server_name like this
server_name yourdomain.com *.yourdomain.com;
server {
Edit: You then would add a nginx redirect in the created default host to redirect to the main domain.