header('Location: ../price/#next', true, 303); ?>
Looks like I'm doing something wrong. The function does not work - it gives an error. Actually on the price
page I need to go to the text next.
Specify the full, not relative address of the page.
<?php header('Location: http://domain.ltd/price/#next', true, 303);
I checked it, everything works.
Yes, did you even come to the address ../price/#next? This address means that you have a SECTION price, it contains the index.html file and the #next link in it. If you need to go to the price page, then remove the extra slash. Type ../price#next
Source: https://ru.stackoverflow.com/questions/380964/
All Articles