![]() |
Dreamhost .htaccess that works - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Dreamhost .htaccess that works (/showthread.php?tid=18518) |
Dreamhost .htaccess that works - El Forum - 05-08-2009 [eluser]skoots[/eluser] After some frustration trying to get my site running on Dreamhost (shared) I finally hit upon a winner: Code: RewriteEngine On I'm not very competent with .htaccess so this was mainly a brute trial and error effort. My URI profile was set to AUTO: Code: $config['uri_protocol'] = "AUTO"; Hope this helps someone down the line! Dreamhost .htaccess that works - El Forum - 05-08-2009 [eluser]Daniel Moore[/eluser] I've seen Code: RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA] But I've never seen Code: RewriteRule ^(.+)$ index.php?$1 [L] The main difference being the lack of the "/" in yours. (And the "nocase" and "query string append" modifiers.) I'm curious to ask, without the slash the way you have it, are you able to correctly access different controllers/functions without a problem? For example, does Code: http://www.example.com/controller/function/param1/param2 Dreamhost .htaccess that works - El Forum - 05-10-2009 [eluser]Cro_Crx[/eluser] There's some info on the wiki here. http://codeigniter.com/wiki/Dreamhost_.htaccess/ |