delinane
delinane

Reputation: 135

How do I disable browsers too many redirection prevention?

There is a php file redirects to itself by incrementing $_GET['page'] value. For example, domain.com?page=1 redirects to domain.com?page=2 until page value is 500. After 20 redirection firefox gives following error.

The page isn’t redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

this problem can sometimes be caused by disabling or refusing to accept cookies.

Other browsers give similar errorr. Is there any browser setting to disable too many redirection prevention?

Upvotes: 0

Views: 132

Answers (1)

delinane
delinane

Reputation: 135

By using javascript's window.location, problem is solved.

Upvotes: 1

Related Questions