Robots.txt missing on localhost
-
Hello!
I’m working with xampp in the local environment and then building a static site and hosting it to Cloudflare pages.
I noticed that I was missing the robots.txt file both in the localhost and CF pages.
I have installed the SEO Framework plugin and made some settings adjustments to robots.txt settings. I have a file – robots.php, but it won’t make a robots.txt file.
It might be not a plugin issue, but maybe the Xampp/localhost setup I’m using, I don’t know.
Also, I have read that robots.txt is a dynamic file and is generated when requested.
I have created manually robots.txt and placed it in the root folder and now it works. But it’s generic, without those settings I have set up in The SEO framework plugin. If I copy directly from robots.php to my robots.txt, it doesn’t work.
Any suggestions on what might be wrong and what solution I could use?
Thanks in advance.The page I need help with: [log in to see the link]
- The topic ‘Robots.txt missing on localhost’ is closed to new replies.