404 regardless... [SOLVED] |
[eluser]iainco[/eluser]
Hey guys, I've just uploaded my project to my live server and cannot for the life of me get it going. I'm getting a CI 404 error message when using this url http://www.domain.com/beta/index.php/betarel/index and http://www.domain.com/beta/index.php Relevant settings are: Code: $config['base_url'] = "http://www.domain.com/beta/"; I don't have an htaccess file present. I have tried all the other options for "uri_protocol", all with the same result. My default controller code: Code: class Betarel extends Base_Controller I have my subclass_prefix set correctly. The project was working perfect on my local machine. Anything obvious I've missed? Thanks a lot
[eluser]iainco[/eluser]
I should add that my dir setup is like so httpdocs/beta httpdocs/beta/index.php httpdocs/beta/system/ httpdocs/beta/system/application and in my index.php the path names are set as follows: Code: $system_folder = "system";
[eluser]iainco[/eluser]
Hate to do this, but does anyone have any idea what may be going wrong? Thanks
[eluser]phpserver[/eluser]
Maybe your server is generating new .htaccess files.You have to investigate what is causing it,if my theory is correct.I heard someone call it .htaccess being generated and deployed on demand(i guess this is how your server responds to new threats,in some small way,i guess)
[eluser]iainco[/eluser]
Thanks for your replies guys. I'm not using any routes sophistry. I'm going to try out what this post says: http://ellislab.com/forums/viewthread/44894/ Will report back later.
[eluser]sophistry[/eluser]
you must have a default route set. what is that set to?
[eluser]iainco[/eluser]
Sorry, yup I've got the default controller set to Code: $route['default_controller'] = 'betarel'; Everything was working fine on my local machine so it must be a server configuration problem.
[eluser]sophistry[/eluser]
so, i guess you are using dreamhost? that thread you linked to has information about htaccess but you said you are not using htaccess. just as a test put a normal (not CI) php file called test.php right at your httpdocs root and see if it gets served.
[eluser]iainco[/eluser]
http://www.domain.com/beta/test.php is working fine with Code: <?php I'm not using dreamhost, it's a private server on fasthosts (I think it's fasthosts). |
Welcome Guest, Not a member yet? Register Sign In |