T3 upgrade 10.4 to 11.5 login to BE failed

Hi,
I have upgraded from 10.4 to 11.5. Website works! But I get an error when logging in to the BE.

The requested URL was not found on this server.

I have seen in the changelog that some things with login to the BE have changed. When using APACHE (what I do) some rewriting is now used.
Rewriting is activated and the .htaccess is not changed by me.

But it looks like something is going wrong.

Logfile says:

[Mon Jan 30 08:23:08.000809 2023] [core:info] [pid 18767] [client 127.0.0.1:37536] AH00128: File does not exist: /var/www/averlon.de/av_homep/public/typo3/login, referer: http://www.averlon.de/typo3/

But I guess this is only a follow-up error of the misconfiguration.

Any help appreciated.
Regards
Karl-Heinz

Hi Karl-Heinz, Typo3 v11 Introduced backend Routing. this is why the rewrite rules in the .htaccess file changed to include /typo3/ from the error i suspect you did not update the typo3 rewrite rules.

and so a request to /typo3/login fails as its not correctly redirected (internally) to /typo3/index.php``

so please compare your projects .htaccess to the default .htaccess (especially the rewrite section)

Hi @1stmachine
thanks for reply. I will check.
I did nothing on the .htaccess file. I expected it to be updated by the composer update - if necessary.

My sections says:

<IfModule mod_rewrite.c>

        # Enable URL rewriting
        RewriteEngine On

        # Store the current location in an environment variable CWD to use
        # mod_rewrite in .htaccess files without knowing the RewriteBase
        RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
        RewriteRule ^.*$ - [E=CWD:%2]

        # Rules to set ApplicationContext based on hostname
        #RewriteCond %{HTTP_HOST} ^dev\.example\.com$
        #RewriteRule .? - [E=TYPO3_CONTEXT:Development]
        #RewriteCond %{HTTP_HOST} ^staging\.example\.com$
        #RewriteRule .? - [E=TYPO3_CONTEXT:Production/Staging]
        #RewriteCond %{HTTP_HOST} ^www\.example\.com$
        #RewriteRule .? - [E=TYPO3_CONTEXT:Production]

        # Rule for versioned static files, configured through:
        # - $GLOBALS['TYPO3_CONF_VARS']['BE']['versionNumberInFilename']
        # - $GLOBALS['TYPO3_CONF_VARS']['FE']['versionNumberInFilename']
        # IMPORTANT: This rule has to be the very first RewriteCond in order to work!
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ %{ENV:CWD}$1.$3 [L]

        # Access block for folders
        RewriteRule _(?:recycler|temp)_/ - [F]
        RewriteRule fileadmin/templates/.*\.(?:txt|ts)$ - [F]
        RewriteRule ^(?:vendor|typo3_src|typo3temp/var) - [F]
        RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ - [F]

        # Block access to all hidden files and directories with the exception of
        # the visible content from within the `/.well-known/` hidden directory (RFC 5785).
        RewriteCond %{REQUEST_URI} "!(^|/)\.well-known/([^./]+./?)+$" [NC]
        RewriteCond %{SCRIPT_FILENAME} -d [OR]
        RewriteCond %{SCRIPT_FILENAME} -f
        RewriteRule (?:^|/)\. - [F]

        # Stop rewrite processing, if we are in the typo3/ directory or any other known directory
        # NOTE: Add your additional local storages here
        RewriteRule ^(?:typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/) - [L]

        # If the file/symlink/directory does not exist => Redirect to index.php.
        # For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-l
        RewriteRule ^.*$ %{ENV:CWD}index.php [QSA,L]

</IfModule>

Hi @1stmachine ,
I have now copied the STANDARD .htaccess from your link you provided. All lines.

Now it works!

Thanks
Karl-Heinz