Ajenti
Base de conocimientos
ES
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)
Iniciar sesión / Darse de alta
ES
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)
Iniciar sesión / Darse de alta
General
Preguntas
0
¿Lo es?
Inadecuado
Correo basura
Duplicado
Redirect subdomains to main domain
MonsterCake
hace 9 años
•
actualizado por
janxb
hace 9 años
•
3
Is there a simple way to redirect all subdomains *.domain.com to domain.com?
Voto
0
0
Deshacer
Seguir
Respuestas
3
Más antiguo primero
Más reciente primero
Más antiguo primero
0
Lexy
hace 9 años
in the nginx configuration of your site >> content tab >> custom confiquration
enter youre server_name like this
server_name yourdomain.com *.yourdomain.com;
Respuesta
¿Lo es?
Inadecuado
Correo basura
Duplicado
|
0
Roman Random
hace 9 años
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!
Respuesta
¿Lo es?
Inadecuado
Correo basura
Duplicado
|
0
janxb
hace 9 años
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.
Respuesta
¿Lo es?
Inadecuado
Correo basura
Duplicado
|
Servicio de atención al cliente
por UserEcho
Compartir
Estadísticas del topic
0
Votos
3
Respuestas
3
Seguidores
7.456
Vistas
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.