The WeChat applet opens the WeChat H5 page, the trial version can be opened, but the access to the production environment fails, and the page cannot be accessed

During the development, when the web-view opens the WeChat H5 page, the trial version can be opened, the development version can be opened, and the debugging can be opened, but the production environment fails to access and cannot access the page, that is, we have not configured the business domain name. As shown below,
![Insert picture description here](https://img-blog.csdnimg.cn/40f1d9c263ab43029ea561968049e80a.png

The solution is to find the development management in the background of the applet, development settings, pull down, and find the business domain name configuration
insert image description here
insert image description here

So let’s add the domain name of the H5 page we want to visit here, click to configure it as shown below

insert image description here

The verification file here only needs to be placed in the root directory of the domain name. For example, if we want to visit https://www.baidu.com, the verification file should be placed in https://www.baidu.com/testFile.txt After the verification is completed, we can visit the webpage under this domain name, such as https://www.baidu.com/h5/index, or https://www.baidu.com/test_h5, after binding the domain name , all subdomain names can be accessed, and if you don’t understand, you can leave a message below

Guess you like

Origin blog.csdn.net/m0_46156566/article/details/128929774