Welcome Guest, Not a member yet? Register   Sign In
404 error instead of 200 ok
#1

[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
#2

[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.
#3

[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 Sad
#4

[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.
#5

[eluser]Ngulo[/eluser]
ahhhhhhh tryed :

$route[‘default_controller’] = “home”;
$route[‘404_override’] = "home";

no changes Sad

still loading incorrect urls without showing 404 page Sad
#6

[eluser]Ngulo[/eluser]
ok i removed index.php putted rewrite rules in htacces and now it works :/

so strange ...
#7

[eluser]alexaaaaaaaaaa[/eluser]
hmmm that's strange ..very strange becouse it should work without doing that..




Theme © iAndrew 2016 - Forum software by © MyBB