Currently when I hit a 404 URL Magento serves the custom 404 page I set up under CMS -> Sites (noRoute) while staying at the 404 URL.

What I want is that instead Magento should redirect to the page www.mydomain.de/404.

How can this be done?

1 Answer 1


You can extend the reroute action in your own module and then, inside the controller code, have:

header('HTTP/1.0 404 Not Found');

That should do the job.

Here is a tutorial on extending the reroute action:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.