I just reset to default so the errors do not seem to be related. However I will try this solution later: http://www.bstar.de/2009/03/24/typo3-realurl-and-a-real-404-error-page/