404 Not Found - sure it's simple but can't figure it out |
[eluser]Chad Fulton[/eluser]
Which type of 4040 Not Found screen are you getting? Is it the one you get if you go to http://this-webpage-does-not-exist.com, or is it a CodeIgniter one?
[eluser]wabu[/eluser]
Yeah, what Chad said ^^, and I should have added these to the list of links to try pasting into your browser: http://localhost/welcome/index/ http://localhost/welcome/cat/5 I think you mentioned the index function is working when clicked in the browser, so that would imply that something's up and running locally. Keep trying stuff.
[eluser]gypmaster[/eluser]
It's the browser standard 404 page, not the CI one. Typing this: http://localhost/ci/ in the browser address bar takes me to the index function in the controller and shows me the view associated with that function.
[eluser]Chad Fulton[/eluser]
Since it's the standard 404 page, it must a problem with your .htaccess configuration. Essentially, the page request isn't even making it to CodeIgniter. Is that all you have in the .htaccess file?
[eluser]gypmaster[/eluser]
Here's my .htaccess file - it sits in the "ci" folder: Code: RewriteEngine on Cheers
[eluser]Chad Fulton[/eluser]
My guess is that this is a problem with your webserver. Since you mentioned localhost, I assume you're running Apache webserver on your computer. If that's the case, then I think this might do the trick: Go to wherever you installed Apache (C:\Program Files\Apache Software Foundation\Apache2.2 maybe?) and go to the conf folder. Edit httpd.conf. Where it says Code: # you're going to want to change "AllowOverride None" to "AllowOverride All"
[eluser]gypmaster[/eluser]
Hi Chad, you're a genius! I am indeed running a local wamp-type setup. changing the AllowOverride to All makes the differecne. It works! Thanks again. |
Welcome Guest, Not a member yet? Register Sign In |