robots.txt file not found
P粉958986070
P粉958986070 2023-09-09 14:58:23
0
2
585

In the Vue (3.4) application, I created a robots.txt file at the root of the folder. I have deployed my website with a robots.txt file but when I enter the URL https://www.example.com/robots.txt/ it cannot be found and I get a 404 error message.

P粉958986070
P粉958986070

reply all(2)
P粉951914381

Put the robots file into the public folder. You should put any files you want to access into the build output (production). read

P粉002546490

You need to put this into your public folder. Only the contents of this folder can be accessed directly from the network. Hence why the css/js files are there

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!