pageErrorHandling doesn't work with relative files in a subfolder TYPO3 install
pageErrorHandling checks for the REQUEST_URL environment variable, which is the root domain, even if TYPO3 is installed in a subfolder. So relative files in fileadmin should be prefixed with http://domain.com/subfolder/, but are just prefixed with http://domain.com/, causing the relative file to not be found.
Need more feedback of possible pitfalls with this approach.
(issue imported from #M8441)
#2 Updated by Christoph Koehler over 11 years ago
Some more info:
My TYPO3 install on localhost is in a subfolder, so I have http://localhost/sub1/, http://localhost/sub2/, etc.
When I set my error page to fileadmin/404.html, it always tells me that http://localhost/fileadmin/404.html doesn't exist, which is of course true.
That's because TYPO3_REQUEST_HOST is just the domain name, not the site url.