Bug #31614
Remove typo3/index.html
| Status: | Resolved | Start date: | 2011-11-06 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Michael Stucki | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - | |||
| TYPO3 Version: | 4.7 | Complexity: | ||
| PHP Version: | ||||
| Votes: | 0 |
Description
I accidentally checked an option in Firefox which allows to disable meta redirection (use the Web Developer toolbar and click Disable > Disable Meta Redirects).
So I wondered why my backend login did no longer show up, since obviously http://mysite/typo3/ did not redirect to index.php any more.
After I realized the problem, I could simply delete typo3/index.htm and typo3/index.html and the login page immediately came back. This is because my DirectoryIndex in Apache is set to "index.htm index.html index.php", so if the 2st two files are not available, it will always send the index.php document right away.
So I propose to remove those files, which seem to be of little need. Precondition is that I assume everyone has index.php in their DirectoryIndex, which is the case by default in Apache on Debian at least, but I also think it applies pretty much to everyone...
Also not that meta refresh has been deprectated by the W3C anyway, so it's going to be removed sooner or later... http://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element
Associated revisions
[!!!][FEATURE] Remove typo3/index.html (and more)
Remove typo3/index.html which does nothing else than redirecting to
index.php.
It uses a meta redirection, which has been deprecated by the W3C:
http://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element
If this change will break your setup, make sure to change the
"DirectoryIndex" setting of your Apache webserver so it looks for files
named index.php: DirectoryIndex index.php
The patch will also remove other files with a similar functionality:
- typo3/index.htm
- typo3/index.html
- typo3/install/index.htm
- typo3/install/index.html
It will NOT remove index.html in t3lib/ and some other places, where the
redirect is rather used as a security feature to avoid directory
listings on poorly configured servers...
Change-Id: I0097c62213cde9cec056e4a6b864cba9f2e828f6
Resolves: #31614
Reviewed-on: http://review.typo3.org/6561
Tested-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Reviewed-by: John Galt
Tested-by: John Galt
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
History
Updated by Mr. Hudson over 1 year ago
- Status changed from New to Under Review
Patch set 2 of change I0097c62213cde9cec056e4a6b864cba9f2e828f6 has been pushed to the review server.
It is available at http://review.typo3.org/6561
Updated by Michael Stucki over 1 year ago
- Assignee set to Michael Stucki
Updated by Mr. Hudson over 1 year ago
Patch set 3 of change I0097c62213cde9cec056e4a6b864cba9f2e828f6 has been pushed to the review server.
It is available at http://review.typo3.org/6561
Updated by Michael Stucki over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c860aa01a6118fe3e820ca921ac14e26e1587b77.