Project

General

Profile

Actions

Bug #94901

closed

TYPO3 Backend-Login fails for Typo3 after a fresh installation

Added by Florian Rival over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2021-08-16
Due date:
% Done:

0%

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

Description

After installing a fresh Typo3 v11 as I usually do with previous versions, when I tried to connect to the backend I have this error : "The requested URL was not found on this server."

With the redirected URL : http://www.xxx.com/typo3/login?loginProvider=1433416747

The installation is on a linux server and the procedure is :

  • composer require "typo3/cms-core:^11" "typo3/minimal:^11"
  • use the install tool to create the database schema
  • create BE user
  • switch to BE login
  • and it fails !

Note : TYPO3 is not installed on a sub-directory of the domain

Actions #1

Updated by Florian Rival over 2 years ago

Ok find the solution, the problem was in my Apache vconf, I have to change the rewrite directive with this :

    <IfModule mod_rewrite.c>
         # Enable URL rewriting
        RewriteEngine On
        RewriteRule ^(?:fileadmin/|typo3conf/|typo3temp/|uploads/) - [L]

        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-l
        RewriteCond %{REQUEST_URI} ^/typo3/.*$
        RewriteRule ^typo3/(.*)$ %{ENV:CWD}typo3/index.php [QSA,L]
    </IfModule>

It's because with Typo3 v11, Typo3 has rewrite rules for BE.

Look there : https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/11.0/Breaking-93048-BackendURLRewrites.html

And finally, I've found that it's not needed to do this in vconf because it's already in .htaccess but I in my case htaccess was disabled globally in my Apache conf. So I re-enable it and don't need the instruction above.

Actions #2

Updated by Simon Gilli over 2 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF