Home » Adding static pages to the root directory of CodeIgniter

Adding static pages to the root directory of CodeIgniter

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)

Optimind Logo

Digital Marketing agency with focus on Social Media, SEO, Web Design, and Mobile Development

Google Partner
Dot PH

Contact

Optimind Technology Solutions

2nd Flr CTP Building
Gil Fernando Avenue
Marikina City
Manila 1803 Philippines

+(63) 2 86820173
+(63) 2 86891425
+(63) 2 77394337
Australia - +(61) 2 80050168
Los Angeles, CA - +19092722457