Welcome Guest, Not a member yet? Register   Sign In
Not showing 404s
#1

[eluser]tsisson[/eluser]
I'm directing all the requests to my front controller through mod_rewrite. But if I call a method, that the controller doesn't contain, the 404 isn't shown. Even if I turn off error_reporting.

Any clue what could be wrong?
#2

[eluser]GSV Sleeper Service[/eluser]
hard to tell without more info. do you have any custom routes set up? what does your .htaccess look like?
#3

[eluser]tsisson[/eluser]
No routes but this one:

Code:
$route['default_controller'] = "front";

And the mod_rewrite is the standard one ->
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/front/$1 [L]
#4

[eluser]tsisson[/eluser]
Using another controller for my feeds, this new controller throws the 404s. But my default controller still doesn't.

I mapped the new controller with mod_rewrite
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.*)/feed/$
RewriteRule ^(.*)$ index.php/feed/$1 [L]
#5

[eluser]tsisson[/eluser]
Didn't work. If anyone ist interested in a solution: I fixed it with a __call() method in my controller.

Code:
function __call($name, $parameterArray) {
    show_404('page');
}




Theme © iAndrew 2016 - Forum software by © MyBB