No, not directly. If possible for your requirements of the website you could set a 404 document / url in the htaccess file. It’s not the same as modx 404 but a solid server thing.
Quote from: smooth-graphics at Dec 05, 2010, 02:28 PMIt was exactly the error-page which didn´t work anymore after implementing Marc´s solution. Because of this we couldn´t use Marc´s solution.
what problem do you exactly have with this solution from Marc posted in German board? (apart from the error page which could be sovled via htaccess 404 page-setting)
Do you think this can be solve by modification of the htaccess-page?
In our case the error-page is not working correctly. The same in Marc’s demo-site. If you type in a fantasy file-name on his posted demo-url you are redirected to his index-page (the same in our case).
No, not directly. If possible for your requirements of the website you could set a 404 document / url in the htaccess file. It’s not the same as modx 404 but a solid server thing.
Otherwise, it’s working totally correct with error handling in Marc’s demo-site - this error page ssl-thing, so maybe there’s something in your configuration not working properly?
In our case the error-page is not working correctly. The same in Marc’s demo-site. If you type in a fantasy file-name on his posted demo-url you are redirected to his index-page (the same in our case).Thought it would be the preferred method (home page instead of error doc)...
But maybe we can solve this by adding a line in the htaccess. Does anybody has an idea what we have to add in the htaccess to get a correct error-page?
ErrorDocument 400 /errors/badrequest.html ErrorDocument 401 /errors/authreqd.html ErrorDocument 403 /errors/forbid.html ErrorDocument 404 /errors/notfound.html ErrorDocument 500 /errors/serverr.html
We added in the htaccess: "ErrorDocument 404 /error-page.html"
You need a FileInfo override for ErrorDocument directives in .htaccess files, see http://httpd.apache.org/docs/2.0/mod/core.html#errordocument
We added in the htaccess: "ErrorDocument 404 /error-page.html"
Do you think this is not enough? Or do we have to add more commands in the htaccess? At least we didn´t find more information about this on the page of your recommended link.
ErrorDocument 404 "Seite nicht gefunden / site not found."
Der Microsoft Internet Explorer (MSIE) ignoriert standardmäßig serverseitig generierte Fehlermeldungen, wenn sie "zu kurz" sind und ersetzt sie durch eigene "freundliche" Fehlermeldungen. Die Größe variiert abhängig von der Art des Fehlers, im Allgemeinen zeigt der MSIE jedoch den serverseitig generierten Fehler, anstatt ihn zu verstecken, wenn Ihr Fehlerdokument größer als 512 Bytes ist. Weitere Informationen sind im Artikel Q294807 in der Microsoft Knowledgebase verfügbar.