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
vi pub/.htaccess
Find
#RewriteBase /magento/
Replace with
RewriteBase /
Many static files were also not loading, to fix it, edit the file
vi pub/static/.htaccess
Find
#RewriteBase /magento/pub/static/
Replace with
RewriteBase /static/