标头重定向适用于本地服务器,但不适用于真实服务器

This line of code works when running on my localhost (and redirects you to the customer.php page) but does not work when I upload my code to Go-daddy:

header("Refresh:0;customer.php");

It needs to be:-

header("location:customer.php");

If it shows headers already send then check and remove two thing:-

If you have any print code (echo or print() or print_r()) before this redirect line then remove that code.

If you have any spaces or empty lines in the end of the file (before or after closing ?>) then remove it.

Try header('location: customer.php') in youre php file. That should work to redirect to this site. Be careful with the path!

<meta http-equiv="refresh" content="0; url=http://example.com/" />

Here content will refer to the waiting time for redirecting the page in seconds .