When you need to add files to your site for purposes such as verifying your domain on Google Search Console, adding a robots.txt
file, or other configurations, you don't need to upload them directly to the root directory. Instead, follow these steps to ensure the files are properly accessible.
Locate the Public Directory:
Upload the required files to the public
directory within your project's file structure.
Accessing Your Files:
Once uploaded to the public
directory, the files will be accessible through your website URLs. For example, if you add a robots.txt
file, it will be available at yourdomain.com/robots.txt
.
Refer to the image below to see where you need to upload these files:
By following these instructions, you can ensure that all necessary files are correctly placed and accessible on your site.