Ajenti
Baza wiedzy
PL
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)
Zaloguj się/Zarejestruj się
PL
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)
Zaloguj się/Zarejestruj się
General
Pytania
0
Czy tak jest?
Nieodpowiedni
Spam
Duplikat
Redirect subdomains to main domain
MonsterCake
9 lat temu
•
Ostatnio zmodyfikowane przez
janxb
9 lat temu
•
3
Is there a simple way to redirect all subdomains *.domain.com to domain.com?
Głosuj
0
0
Cofnij
Obserwuj
Odpowiedzi
3
Zacznij od najstarszych
Zacznij od najnowszych
Zacznij od najstarszych
0
Lexy
9 lat temu
in the nginx configuration of your site >> content tab >> custom confiquration
enter youre server_name like this
server_name yourdomain.com *.yourdomain.com;
Odpowiedz
Czy tak jest?
Nieodpowiedni
Spam
Duplikat
|
0
Roman Random
9 lat temu
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!
Odpowiedz
Czy tak jest?
Nieodpowiedni
Spam
Duplikat
|
0
janxb
9 lat temu
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.
Odpowiedz
Czy tak jest?
Nieodpowiedni
Spam
Duplikat
|
Customer support service
by UserEcho
Podziel się
Statystyki tematu
0
Głosy
3
Odpowiedzi
3
Obserwuje
7 539
Odwiedziny
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.