My login form on front page is displayed, but when it posts to other pages, the post does not happen. THe problem is that the url is like: http://sitename/users/action which is a 404 not found url. But when i hard code the path to controller, (that is, stop using base_url + "/users/action" and use base_url + "/system/application/controllers/users/action") it starts working. How can i fix this problem?
+1
A:
Are you using .htaccess
to hide index.php
? If so, you need to take that into account with your routing. If not, you need to include it. e.g. if you're not hiding it, try:
base_url+"/index.php/users/action"
stormdrain
2010-07-13 17:31:40
my .htaccess was in the wrong folder. your mentioning of it made me look for it again. Thanks!
2010-07-14 10:31:19
+1
A:
You can also try your config/config.php folder and fix your $config['base_url']...hope that helps.
rabidmachine9
2010-07-13 19:42:04