Welcome Guest, Not a member yet? Register   Sign In
Rewrite/htaccess issues (I think)
#1

[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!




Theme © iAndrew 2016 - Forum software by © MyBB