1. In APM monitoring, GET URL / requests from Alibaba Cloud result in a large number of 404 responses, which interferes with operations work, as shown in Figure 1.

2. Requesting http://api.kaiqiu_shujujiexi_api.dev/ in Postman returns a 404 response, as shown in Figure 2.

3. When a request is parsed as an empty route, the so-called default route is used. The reason it does not route to ‘site/index’ is that strict request parsing is enabled in the configuration file, as shown in Figure 3
‘enableStrictParsing’ => true,
If strict parsing is enabled, the URL of the incoming request must match at least one rule to be considered a valid request; otherwise, a yii\web\NotFoundHttpException will be thrown. If strict parsing is disabled, the path info part of the URL will be treated as the requested route when no rules match the requested URL.

4. Add an entry to the URL rules, as shown in Figure 4.

5. Requesting http://api.kaiqiu_shujujiexi_api.dev/ in Postman returns a 200 response, as shown in Figure 5.

6. The code in ‘site/index’, as shown in Figure 6.

