![]() |
Rewrite/htaccess issues (I think) - 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: Rewrite/htaccess issues (I think) (/showthread.php?tid=6799) |
Rewrite/htaccess issues (I think) - El Forum - 03-12-2008 [eluser]Crazy88s[/eluser] Hello! Very new to codeigniter and am looking for some help in setting up my system correctly. Here's my setup: - Windows Vista - XAMPP My document root is C:\xampp\htdocs Within the document root I have a folder called codeignite which holds all the codeigniter files. When I run http://localhost/codeignite/ I get the "it's working" page. So far so good. I made a copy of the welcome controller and named it journal and like wise with the view I made a journal_message view. When I go to http://localhost/codeignite/journal I get redirect back to http://localhost/xampp/. I enabled mod_rewrite in the httpd.conf file and added a .htaccess file to the C:\xampp\htdocs\codeignite\system\application directory. The contents are: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> <IfModule !mod_rewrite.c> # If we don't have mod_rewrite installed, all 404's # can be sent to index.php, and everything works as normal. # Submitted by: ElliotHaughin ErrorDocument 404 /index.php </IfModule> I also removed index.php from the codeigniter config.php file. I do have a index method in the journal controller so why can't I go to http://localhost/codeignite/journal and see the correct page? If I'm missing anything then please let me know. Thank you! |