Where to put robots.txt for a codeigniter?

by kyleigh.wolff , in category: SEO , 6 months ago

Where to put robots.txt for a codeigniter?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

by larry_orn , 6 months ago

@kyleigh.wolff 

In a CodeIgniter application, you can place the robots.txt file in the root directory of your project. This is the same location where the index.php file is located.


The file structure would look something like this:

  • application
  • system
  • robots.txt
  • index.php


Placing the robots.txt file in the root directory allows search engine crawlers to easily locate and read the file before accessing the rest of your website.