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?
Where in the .htaccess file should that be added?
I am having the same problem with a TYPO3 v13 installation in a subfolder, for now adding that in the places where I’d have suggested did not work.
And actually my typo3 installation is in /var/www/html/typo3.
The domain typo3.xxx.yy points directly to the typo3/public.
So in difference to the beginning statement it is not behind a subfolder.
The request to typo3.xxx.yy/typo3/login?loginProvider… gets a 404 as response
More context: Usually you should set this in the Apache vhost file for the specific installation and only allow what you need. If set to “None” it might disable the .htaccess entirely. The current TYPO3 documentation says you need to add only “Indexes” and “FileInfo”, see System Requirements — TYPO3 Explained main documentation
When this directive is set to None and AllowOverrideList is set to None, .htaccess files are completely ignored. In this case, the server will not even attempt to read .htaccess files in the filesystem.
When this directive is set to All, then any directive which has the .htaccess Context is allowed in .htaccess files.
Thanks to everyone contributing to solving this issue. I marked @speters’s post as the solution, because it has the most complete explanation, but that does not reduce my big kudos to @usama618 for posting the original solution.