ionos Magento Internal Server Error
After migrating a Magento site to ionos shared hosting, internal pages of the site stopped working with “Internal Server Error”.
The problem is due to .htaccess file. The error is fixed by editing pub/.htaccess file
1 |
vi pub/.htaccess |
Find
1 |
#RewriteBase /magento/ |
Replace with
1 |
RewriteBase / |
Many static files were also not loading, to fix it, edit the file
1 |
vi pub/static/.htaccess |
Find
1 |
#RewriteBase /magento/pub/static/ |
Replace with
1 |
RewriteBase /static/ |