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

199
Views
Why does the url not change upon redirection in php?

I have a website based on PHP (with MySQL, Javascript, and JQuery)

Its URL remains unchanged even after the redirection to a new page. This happens for all redirections. If I open the link in a new tab, it will work fine and display the entire new URL but not on the same page. I do not get this issue on localhost, only on the server. What should I do to prevent that?

eg. mywebsite.com redirection to page1 should look like: mywebsite.com/page1 but it doesn't change at all.

The redirection methods that I use is either:

header("Location: ../index.php?Login=error3");

or

 <a href="Forms/LogIn.php" class="btn btn-primary">Button</a>

Both redirection types do not change the URL.

over 4 years ago · Santiago Trujillo
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!