Problem with beginner tutorial |
[eluser]Unknown[/eluser]
Hey! So I've recently started reading the CI documentation, and I've come across something that's totally stumped me. Code: <h2>Create a news item</h2> When I press submit it ends up with the URL: http://localhost/news/localhost/index.php/news/create And an error 404 cannot find webpage Only solution I've found is: Code: <h2>Create a news item</h2> Any insight on why it isn't work the way it should be? It's probably something obvious but I've googled around and have been unsuccessful any help would be very much appreciated!
[eluser]Unknown[/eluser]
Actually it happens for any link or form its just appended onto the current URL. I've modifed the .htaccess to remove the index.php like the showed in the documentation
[eluser]InsiteFX[/eluser]
.htaccess You need to add this to it if you remove index.php: Code: RewriteEngine On Should give you and idea of how it works, paths will be your own paths. This will invoke the index.php through the path.
[eluser]Aken[/eluser]
I bet your base_url config setting is written incorrectly. It needs to be a full URL, IE http://localhost/ |
Welcome Guest, Not a member yet? Register Sign In |