I have tried to install magento 2.4 using below commands
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition m24
bin/magento setup:install --backend-frontname="admin"
--db-host="localhost"
--db-name="m24"
--db-user="root"
--db-password="password"
--language="en_US"
--currency="GBP"
--timezone="Europe/London"
--use-rewrites=1
--use-secure=0
--base-url="http://localhost/magento/m24/"
--base-url-secure="https://localhost/magento/m24/"
--admin-user=admin
--admin-password=admin@111
--admin-email=any@any.com
--admin-firstname=admin
--admin-lastname=admin
--cleanup-database
It installed but when i visit http://localhost/magento/m24/
it shows 404 not found
On http://localhost/magento/m24/pub/
it redirects to homepage but no image & css fetch
as its all 404.
Any way to make it work ?