Bug #18803
closedpageErrorHandling doesn't work with relative files in a subfolder TYPO3 install
0%
Description
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)
Files
Updated by Christoph Koehler over 16 years ago
My bad, it checks for the TYPO3_REQUEST_HOST variable.
Updated by Christoph Koehler over 16 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.
Updated by Peter Niederlag over 14 years ago
TYPO3 install on localhost is in a subfolder
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'READFILE:fileadmin/notfound.html';
-> everything works as expected for me.
Still reproducable?
Realurl enabled?
OS/Webserver/PHP-Version?
Updated by Christoph Koehler over 14 years ago
Seems to work now. It's only been two major versions since :)
Updated by Chris topher about 14 years ago
Resolved, not reproducable.
Thanks for the feedback!