Adding static pages to the root directory of CodeIgniter

By February 12, 2010PHP Programming

Just recently, we had a problem with a CI site not recognizing a sitemap.xml. Tried searching through the net but can’t find any solution to it. Turns out you just need to upload it to the root and  a simple editing of the .htaccess.

Here’s the edited .htaccess line:

RewriteCond $1 !^(index.php|images|robots.txt|sitemap.xml)

Leave a Reply