Project

General

Profile

Actions

Task #86173

closed

Automatically create .htaccess or web.config file upon installation

Added by Susanne Moog almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
Start date:
2018-09-06
Due date:
% Done:

100%

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

Description

When installing TYPO3 depending on the web server capabilities a .htaccess file or web.config file should be directly created - in case another web server is used, the installation process should display a hint that rewriting urls needs to be enabled.

Background:
- With routing the core now requires basic rewriting to work

Actions #1

Updated by Susanne Moog almost 6 years ago

  • Status changed from New to Accepted
Actions #2

Updated by Claus Due almost 6 years ago

I would not recommend this, at least not without it being a conscious decision and opt-in. Reason being, Apache is just one of many web servers that are able to serve a TYPO3 site and we should not be auto-generating files that only work for one web server.

It may be more appropriate to include some sort of "should we fix this?" dialog if detecting that routing is broken and server is Apache, which turns into a link to documentation if the server is NOT an Apache server.

Actions #3

Updated by Helmut Hummel almost 6 years ago

An alternative to creating such file would be to by default
generate links including the index.php like index.php/foo/bar/

And only skip the index.php file for url generation,
when an additional option (e.g. env var) is set.

That is the direction the Neos community went.

Actions #4

Updated by Susanne Moog over 5 years ago

@Claus: of course we would not do that on non-apache web servers, that's what I meant with "capabilities". We are already delivering these files with the core and I'd argue that if you do not have a working config but a webserver capable of being auto configured it's nice if it works automatically if possible and informs you if not. As stated in the description for all other cases, I of course want some kind of hint.

BTW the introduction package already has this functionality since quite some time.

Actions #5

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/58451

Actions #6

Updated by Gerrit Code Review over 5 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58451

Actions #7

Updated by Christian Kuhn over 5 years ago

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

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF