After refresh web page, it returns 404.

Yi Qian 20 Reputation points Microsoft Employee
2024-03-19T05:25:56.81+00:00

We built a web app, which has multiple pages. And one of page contains QR code. After scan QR code, user should able to access another page.

All logic works fine at local env, but after we deployed to Azure, we have following issues:

  1. At production, after refresh any pages, we only get 404. But at local, we will be directed to login page
  2. At production, after scan QR code, we only get 404, and not able to redirect to another page.

This is our web.config file

User's image

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 17,741 Reputation points Microsoft Employee Moderator
    2024-03-19T23:44:02.5233333+00:00

    @Yi Qian Please note that this is an external forum meant for external customers.

    Regarding your question, have you checked your deployment logs to ensure there were no issues with the deployment?

    Secondly, have you checked the routing used in your web.config file? Ensure that the routing rules are correct and that they are pointing to the correct files.


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.