Ajenti
Base de connaissances
FR
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)
Se connecter / S'inscrire
FR
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)
Se connecter / S'inscrire
General
Questions
0
Signaler comme
Inapproprié
Pourriel
Doublon
Redirect subdomains to main domain
MonsterCake
il y a 9 ans
•
mis à jour par
janxb
il y a 9 ans
•
3
Is there a simple way to redirect all subdomains *.domain.com to domain.com?
Voter
0
0
Annuler
S'abonner
Réponses
3
Plus ancien en premier
Plus récent en premier
Plus ancien en premier
0
Lexy
il y a 9 ans
in the nginx configuration of your site >> content tab >> custom confiquration
enter youre server_name like this
server_name yourdomain.com *.yourdomain.com;
Répondre
Signaler comme
Inapproprié
Pourriel
Doublon
|
0
Roman Random
il y a 9 ans
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!
Répondre
Signaler comme
Inapproprié
Pourriel
Doublon
|
0
janxb
il y a 9 ans
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.
Répondre
Signaler comme
Inapproprié
Pourriel
Doublon
|
Service d'assistance aux clients
par UserEcho
Partager
Stats du sujet
0
Votes
3
Réponses
3
Suiveurs
7 538
Vues
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.