Typo3 backend login throw 404

Hello. I tried to install Typo3 in subdirectory /typo3, but after login to admin panel I got “404 page not found” error. The problem does not occur when installing Typo3 in root directory. It’s probably related with htaccess rules. Is there any solution?

domain.com/typo3/typo3/login ← returns not found after submit login
domain.com/typo3/login ← everything works

Hi Thomas!

Welcome to TYPO3!

Yes, I wonder if using typo3/ in your path is messing up something. Do you have the same problem if you give the directory a different name?

Also: Which version of TYPO3 are you using?

I wonder if it’s this RewriteRule that is triggered:

— Mathias

Yes, same problem for different directory name.
I use typo3 12.4.14

See if it helps if you set RewriteBase /typo3/ in your .htaccess file.

— Mathias