404 error instead of 200 ok |
[eluser]Ngulo[/eluser]
hi , i have just installed CI 2.0.2 with HMVC structure i have simple controller home.php and i load welcome module inside that controller view home_view.php so if i go to www.mysite/index.php/home i see correctly my home page but if i go to www.mysite/index.php/sdfsdgmsdgmsmg(not-existent controller) i see home page too does CI has removed 404 errors by default? thanks
[eluser]alexaaaaaaaaaa[/eluser]
i think there's something in the routes you have defined check that , and no CI didn't removed the 404 error.
[eluser]Ngulo[/eluser]
i really can't understand what is worng, thanks alexaaaaaaaaa, but my routes.php contains: $route['default_controller'] = "home"; $route['404_override'] = ''; nothing more in home controller i load module welcome and all is ok but it doesn't show me 404 pages on not-existent urls
[eluser]alexaaaaaaaaaa[/eluser]
this is what i have in my routes $route['default_controller'] = 'pages'; $route['404_override'] = 'pages'; maybe this will give you an ideea.
[eluser]Ngulo[/eluser]
ahhhhhhh tryed : $route[‘default_controller’] = “home”; $route[‘404_override’] = "home"; no changes still loading incorrect urls without showing 404 page
[eluser]Ngulo[/eluser]
ok i removed index.php putted rewrite rules in htacces and now it works :/ so strange ...
[eluser]alexaaaaaaaaaa[/eluser]
hmmm that's strange ..very strange becouse it should work without doing that.. |
Welcome Guest, Not a member yet? Register Sign In |