Bug #88028
closedindex.php results in 404
100%
Description
Fresh installation of Typo 9.5.5 with DEMO-Site with "built-in" site-config
the result of http://domain.net/index.php results in 404.
http://domain.net/ : works
http://domain.net/index.php?id=1 : works
http://domain.net/index.php : 404
Delete the site-config and http://domain.net/index.php works as aspected.
Updated by Benni Mack over 5 years ago
- Category changed from Frontend to Site Handling, Site Sets & Routing
- Status changed from New to Accepted
Updated by Alexander Opitz over 5 years ago
I've the following:
https://domain.net/ : works
https://domain.net/?id=1&L=0 : works
https://domain.net/index.php : 404
https://domain.net/index.php?id=1 : works
https://domain.net/index.php?id=1&L=0 : Redirect Loop to https://domain.net/index.php////////////////////////////////////////?id=1&L=0
tx_solr do not work with speaking sites yet, it uses the id schema https://domain.net/index.php?id=1&L=0
Updated by Gerrit Code Review over 5 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60503
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60512
Updated by Benni Mack over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d06dee7effac635fa28beb7481c2478594ee8d01.
Updated by Alexander Opitz over 5 years ago
Hint: The mentioned redirect loop is fixed with https://review.typo3.org/#/q/I0457c48640d6b47a0947ed5115a96cf73cc97d81
Updated by Ralf Hübner over 4 years ago
This does not work, if the scriptname looks like "typo3/site/public/index.php"
ltrim remove only a trailing "/", but we need the last segment: "index.php" to find and replace the scriptname.
I test with
$scriptName = substr($normalizedParams->getScriptName(), strrpos($normalizedParams->getScriptName(), '/') + 1);
and this works in my installation.
The resulting $urlPath is empty and that should be the "starting page".
Or simplier:
$scriptName = basename($normalizedParams->getScriptName());
Updated by Stefan Bürk over 3 years ago
- Related to Bug #94905: FE requests to /index.php are broken without providing id get parameter, if no pageTypeSuffix routeEnhancer is configured added