search

Home  >  Q&A  >  body text

robots.txt file not found

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粉958986070P粉958986070442 days ago653

reply all(2)I'll reply

  • P粉951914381

    P粉9519143812023-09-10 13:17:18

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

    reply
    0
  • P粉002546490

    P粉0025464902023-09-10 13:08:34

    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

    reply
    0
  • Cancelreply