I have installed Magento 2.4 on Apache 2 sever running on Ubuntu 20.x
When I try to load the magento root directory on browser, I get
Not Found The requested URL was not found on this server.
I have the .htaccess (default file created by install) like this
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/pub/
RewriteCond %{REQUEST_URI} !^/setup/
RewriteCond %{REQUEST_URI} !^/update/
RewriteCond %{REQUEST_URI} !^/dev/
RewriteRule .* /pub/$0 [L]
DirectoryIndex index.php
Can someone help me understand what this is trying to do?
My understanding is, this is looking for index.php file (which is not present in the root installation directory - and thus the error).
I have a feeling that the error has to do something with the line
RewriteRule .* /pub/$0 [L]
Thanks in advance!