.htaccess problems! - 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: .htaccess problems! (/showthread.php?tid=10442) |
.htaccess problems! - El Forum - 07-31-2008 [eluser]Macros[/eluser] Hi All, Any help on this will be muchly appreciated! Ok, so I've got an .htaccess file: Code: # Turn on URL rewriting Then I had the code sitting in a sub folder called "testing" and the RewriteBase line set to /testing/ it all worked fine. The rewrite was working perfectly. So I moved to to the domain root folder, and changed RewriteBase to /, as in the above. Now all hits to the site go to the default controller, with nothing passed thru. I don't know what's going wrong, but it's like the last line is throwing away the requested parts & just calling index.php. Has anyone else seen this? Anyone have any ideas as to what is going wrong? Cheers, Cameron. .htaccess problems! - El Forum - 07-31-2008 [eluser]Yash[/eluser] Try this Code: RewriteEngine On .htaccess problems! - El Forum - 07-31-2008 [eluser]Macros[/eluser] Ah, found the answer on another thread... should've looked first :red: Hostgator mod_rewrite with CI Had to change the uri_protocol to REQUEST_URI and it worked perfectly |