Ajenti
Knowledge base
CA
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)
Entrar / Registrar-se
CA
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)
Entrar / Registrar-se
General
Preguntes
0
És això?
Inadequat
Spam
Duplicat
Redirect subdomains to main domain
MonsterCake
fa 9 anys
•
updated by
janxb
fa 9 anys
•
3
Is there a simple way to redirect all subdomains *.domain.com to domain.com?
Vote
0
0
Tornar a fer
Follow
Replies
3
vells primer
nous primer
vells primer
0
Lexy
fa 9 anys
in the nginx configuration of your site >> content tab >> custom confiquration
enter youre server_name like this
server_name yourdomain.com *.yourdomain.com;
Respondre
És això?
Inadequat
Spam
Duplicat
|
0
Roman Random
fa 9 anys
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!
Respondre
És això?
Inadequat
Spam
Duplicat
|
0
janxb
fa 9 anys
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.
Respondre
És això?
Inadequat
Spam
Duplicat
|
Customer support service
by UserEcho
Compartir
Topic stats
0
Vots
3
Replies
3
Followers
7.440
Views
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.