cancel
Showing results for 
Search instead for 
Did you mean: 

Home page requires 'home' or index.php

SOLVED

Home page requires 'home' or index.php

I installed 2.3 successfully on one server and then moved it to another. It didn't work at first so I had to do various CLI commands including composer install and composer update.

Now it works and all looks good inside admin but the home page only loads if I include 'home' or index.php after the URL. If I type only the domain name I get this error which is incorrect because I already did a composer install, how do I fix this?

Autoload error

Vendor autoload is not found. Please run 'composer install' under application root directory.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Home page requires 'home' or index.php

Hi @mrstainless 

There might be some permission issue.
https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

You can use sudo as well.


If still face issue, then try following command s once to re generations.

 

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

I hope it will help you!

View solution in original post

2 REPLIES 2

Re: Home page requires 'home' or index.php

Hi @mrstainless 

There might be some permission issue.
https://devdocs.magento.com/guides/v2.3/config-guide/prod/prod_file-sys-perms.html

Try the following command once:

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

You can use sudo as well.


If still face issue, then try following command s once to re generations.

 

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

I hope it will help you!

Re: Home page requires 'home' or index.php

I also found that this issue was only related to the "http" (non secure) address, the site home page was loading correctly for "https" (secure) address.

 

Just putting this information out there in case it helps anyone else because the "Autoload error" error message is really very misleading.