S
S
Sergey Vladimirovich2020-10-01 17:03:20
PHP
Sergey Vladimirovich, 2020-10-01 17:03:20

Is multiple redirect possible?

How to implement multiple redirect on the current page?
if a 307 redirect occurs, for example, from the current to the current page, then it will be executed in a loop.
but for example, they made a redirect 19 times here (chrome will give an error 20+ times)
https://4web.su/s_redirect/ enter into the craftkino.net
form and see an array with redirects that have been completed. how can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton R., 2020-10-01
@anton_reut

Obviously, between redirects, you need to save information about the next steps somewhere, do it through cookies.
1. Check the current URL
2. Depending on the URL, set cookies or take data from there
3. Redirect
4. repeat from step 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question