User-agent: * # Allow Google to see the homepage and all content Allow: / # Block CodeIgniter core system folders Disallow: /application/ Disallow: /system/ Disallow: /user_guide/ # Block the "views" and "controllers" paths if accessed directly Disallow: /application/controllers/ Disallow: /application/views/ # Block standard private directories Disallow: /cgi-bin/ Disallow: /temp/ Disallow: /logs/ # Allow Google to crawl your assets (Essential for SEO) Allow: /assets/css/ Allow: /assets/js/ Allow: /assets/images/ # Point to your sitemap #Sitemap: https://yourportal.com/sitemap.xml