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.

    1 answer 1

    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

    • Thanks figured it out. For me, this form is not suitable, since the data has already been sent. The <meta> tag came up to me - Edwardrst