WordPress - Error 500 with 1&1 and OVH

  • Gérald Barré

When you try to access your WordPress web site after installing it on shared hosting on 1&1 or OVH, this causes a 500 error. This problem comes from the fact that by default the wrong version of PHP is used.

To solve this problem, you must modify the file .htaccess by adding these few lines:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

# END WordPress

To make sure that no one modifies this file, you must revoke write permission (chmod 444). With this you should no longer have a 500 error.

Do you have a question or a suggestion about this post? Contact me!

Follow me:
Enjoy this blog?Buy Me A Coffee💖 Sponsor on GitHub