-1

I tried to use this function to refresh the page as soon as I entered the site.

if (!isset($_GET ['reload'])) { 
    header("Refresh:0 url=https://luxurybites.it/?reload=true");
}

But my aim is to refreshare the page only by accessing the site via a specific link For example, by entering through the link "www.urlspecific.it" The page is refreshed. Can you help me or direct me in the right way please?

Mattia Righetti
  • 1,265
  • 1
  • 18
  • 31
  • Does this answer your question? [How to get the previous url using PHP](https://stackoverflow.com/questions/4662110/how-to-get-the-previous-url-using-php) – Kevin Gales Apr 13 '21 at 11:12

1 Answers1

0

If I understand the question correctly, the intention is to redirect to a URL if a condition is met. The location header redirects ...

I believe this is what you are looking for


    header('Location: https://www.example.com/');

Martin
  • 22,212
  • 11
  • 70
  • 132