How do I add some static routes to a CodeIgniter app?

greeneggsandsam

New Member
How do I configure a CodeIgniter app so I can have one directory that will just serve some static (not MVC) html?I want to handle some existing links, in the form of:http://mysite/contactform/contact.html?queryvarsAnything in the /contactform directory including sub-directories (which is just some css, js, images,etc) should not go through the CodeIgniter pipeline. What is the best way to handle that? (I am normally a Windows dev, so speak slowly)I figure it has to be done in the rewrite config?routes.php is very basic:\[code\]$route['default_controller'] = "home";\[/code\]rewrite rules from .htaccess:\[code\]# you probably want www.example.com to forward to example.com -- shorter URLs are sexier.# no-www.org/faq.php?q=class_bRewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]RewriteRule ^(.*)$ http://%1/$1 [R=301,L]RewriteEngine onRewriteCond $1 !^(index\.php|contact\.php|images|css|js|video|robots\.txt)RewriteRule ^(.*)$ index.php/$1 [L]\[/code\]
 
Back
Top