Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

604
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!