Ajenti
Knowledge base
IS
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)
Sign in / Sign up
IS
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)
Sign in / Sign up
General
Spurningar
0
Er það?
Óviðeigandi
Ruslpóstur
Afrita
Redirect subdomains to main domain
MonsterCake
9 ár síðan
•
updated by
janxb
9 ár síðan
•
3
Is there a simple way to redirect all subdomains *.domain.com to domain.com?
Vote
0
0
Undo
Follow
Replies
3
Elsta fyrst
Nýjast fyrst
Elsta fyrst
0
Lexy
9 ár síðan
in the nginx configuration of your site >> content tab >> custom confiquration
enter youre server_name like this
server_name yourdomain.com *.yourdomain.com;
Reply
Er það?
Óviðeigandi
Ruslpóstur
Afrita
|
0
Roman Random
9 ár síðan
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!
Reply
Er það?
Óviðeigandi
Ruslpóstur
Afrita
|
0
janxb
9 ár síðan
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.
Reply
Er það?
Óviðeigandi
Ruslpóstur
Afrita
|
Customer support service
by UserEcho
Deila
Topic stats
0
Atkvæði
3
Replies
3
Followers
7.439
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.