Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

618
Visualizações
Nginx - How to full url redirect with pattern from old domain

I have a website that I've changed it zone last two days, there are some shared posts in all over the social networks, i want to redirect any user from the old domain to the new one, the problem is i get a full 301 Permanent Redirect to the main page not to that specific URL.

The redirect is handled by CloudFlare, in the roles page, I've created two forward roles as following:

https://myold.com/posts/* > https://mynew.org/posts/* < 302 Temporary Redirect

https://myold.com/* > https://mynew.org/* < 301 Permanent Redirect

Whats wrong here? do i have to use a different pattern? or i must do the redirect from Nginx server?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Hooray!! I got it to work, I just needed to match the pattern with the URL.

The main URL should look like this: *myold.com/* The new URL address must have a parameter to match what goes after *, so it should lool like this: https://mynew.org/$2

Now I get a full redirect to the same URL.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda