Project

General

Profile

Actions

Bug #88028

closed

index.php results in 404

Added by Ralf Hübner over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-03-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #94905: FE requests to /index.php are broken without providing id get parameter, if no pageTypeSuffix routeEnhancer is configuredClosedStefan Bürk2021-08-16

Actions
Actions #1

Updated by Benni Mack over 5 years ago

  • Category changed from Frontend to Site Handling, Site Sets & Routing
  • Status changed from New to Accepted
Actions #3

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

Actions #4

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

Actions #5

Updated by Benni Mack over 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Alexander Opitz over 5 years ago

Hint: The mentioned redirect loop is fixed with https://review.typo3.org/#/q/I0457c48640d6b47a0947ed5115a96cf73cc97d81

Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions #8

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());

Actions #9

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
Actions

Also available in: Atom PDF