ionos Magento Internal Server Error

Written by Yujin Boby

Edit in WordPress

After migrating a Magento site to ionos shared hosting, internal pages of the site stopped working with “Internal Server Error”.

ionos magento 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/