In the CodeIgniter manual it demonstrates how to make a controller for blog.php. It says you can point your browser at http://example.com/blog and it will display the echo "hello world"; code in the blog.php file in the controller folder:
When I go to example.com/blog I get a 404 error. I removed the index.php in the url but I think this problem existed prior.
Any help would be great.
mod_rewrite
and adjust yourconfig.php
settings, you must includeindex.php
in the URL. - Colin Brockexample.com/blog
? Orlocalhost/blog
? Becauseexample.com
is an example, you are meant to replace it with your own host name. - meagar