![]() |
CSS and .htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CSS and .htaccess (/showthread.php?tid=33028) |
CSS and .htaccess - El Forum - 08-13-2010 [eluser]kimp[/eluser] I notice that the .htaccess file in the user guide doesn't make an exception for .css files. What's the best way to deal with this? Personally I just created the exception for the styles directory. The only other alternative I can see is to locate the files outside of code igniter tree. Or am I missing something? CSS and .htaccess - El Forum - 08-13-2010 [eluser]bretticus[/eluser] It does actually. See: http://codeigniter.com/wiki/mod_rewrite/ Code: #Checks to see if the user is attempting to access a valid file, Real files and directories are not handled by codeigniter in this rewrite config from the wiki. Your styles folder should be at the same level as index.php or if you stick index.php in it's very own virtual root folder (for best security) in the virtual root folder. CSS and .htaccess - El Forum - 08-13-2010 [eluser]kimp[/eluser] Thanks bretticus. I was looking at http://ellislab.com/codeigniter/user-guide/general/urls.html, which is clearly an abbreviated version! CSS and .htaccess - El Forum - 08-13-2010 [eluser]bretticus[/eluser] It's been awhile. I forgot where that .htaccess file example came from. They should update the manual! :-) |