302 found in iis

Arutprakasam 261 Reputation points
2023-12-05T04:31:49.0266667+00:00

Hi ,

we are facing iis 302 found status issue while hitting the api hosted on iis server.

Note: we tried to find the http redirect in iis but that module is not showing.

Please share your knowledge to overcome this issue.

Windows development Internet Information Services
Windows for business Windows Server User experience Other
{count} votes

Accepted answer
  1. Yurong Dai-MSFT 2,846 Reputation points Microsoft External Staff
    2023-12-05T09:04:57.0866667+00:00

    Hi @Arutprakasam,

    HTTP 302 Found is a redirect response, usually means "Moved Temporarily". Use browser developer tools to inspect network requests, it can provide additional information about the redirect. Look for the "Location" header, which indicates the URL to which the request is redirected. The source is either in the web server settings or in the application itself, so no one knows but you.

    In IIS Manager, check your site level and server level respectively to see if the following modules are configured:

    "URL Rewrite" module

    "HTTP Redirect" module

    On the IIS server, viewing the log files may provide more information about the 302 status code. Check the IIS log file to see which resource was redirected and see where the "Location" header was targeted.

    If the IIS logs do not provide enough information, check your API code to see if any explicit 302 redirects are set in the code.

    Regardless, even in valid scenarios you may see HTTP 302, which is not an error in itself. If you need help diagnosing a problem, you'll need to post detailed IIS configuration information and network request logs.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the email notification for this thread.

    Best regards,

    Yurong Dai


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.