I have a CodeIgniter 2.0 application in a subfolder of our existing corporate site. I plan to add functionality to the site through this application which is in a folder named “ci.”
The documentation of CodeIgniter explains .htaccess use in a “negative way” in that EVERYTHING is redirected EXCEPT exceptions. I am paranoid about doing this and “breaking” my existing site.
How would you write the .htaccess to ONLY redirect /news requests to a controller named News and /careers requests to a controller named Careers without preventing the original site from working as it does now?
I have NEVER used .htaccess before and have just “endured” the index.php out of fear of breaking the site. I did do some research before asking — besides the CodeIgniter User Guide, I also found “The Comprehensive Guide to .htaccess” (http://www.javascriptkit.com/howto/htaccess.shtml) and URL Rewriting (http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html) which were in depth but did not clarify for me what to do.
Thanks in Advance,
Jon
The expressionengine documentation on writing out index.php shows examples of both the ‘positve’ and ‘negative’ ways you refer to.
http://expressionengine.com/wiki/Remove_index.php_From_URLs/