[eluser]@robertotra[/eluser]
[quote author="Bhashkar" date="1328354527"]
ErrorDocument 404 /controller_name/404_page
[/code]
[/quote]
But this is a different issue: by use of this instructions you redirect to the CI's error controller even the pages not included inside the url rewriting.
As example, if you left out from url rewriting some folders of yours as images, script, styles, stats, blog (if you want to use wordpress on same domain, as example) and so on, when there will be a 404 http request regarding these folders, apache will show CI's 404 page instead of the default one.
Is this what you really want? I believe it is better to use as Apache 404 Page Not Found error a html copy of your CI's 404 page and not to overload the CI's error controller and the CI's error log (if activated you will have duplicate 404 error log, one for Apache and one for CI error controller).
On the other hand, if you use a global rewriting (everything to index.php) Apache will never show its own 404 error page.
Cheers
Roberto