Response.Redirect(url) shows a 301 and a 302 in the firefox developer console

two pages are hosted in iis, the mainpage contains a link:

<a href="https://localhost/ijustredirect">Go to "i just redirect"</a>

and the ijustredirect page contains:
protected void Page_Load(object sender, EventArgs e)

on its default site.

the picture shows part of the firefox developer console, why is there a 301 followed by a 302?
even disregarding that one is temporary and the other is a permanent “notice”, shouldnt there be only one or whats the reason for “ijustredirect” and “/ijustredirect/” ?

firefox was already showing the mainpage, then i clicked on the link and it loaded up the second page which immediately redirected me back to mainpage – thats how to lines in the network tab where created.

Response.Redirect(url) shows a 301 and a 302 in the firefox developer console


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

It appears that ASP.NET will automatically redirect you from ijustredirect to ijustredirect/ so just change the hyperlink to

<a href="https://localhost/ijustredirect/">Go to "i just redirect"</a>

to avoid this

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x