Drupal update from 7.22 to 7.23 - Internal Server Error 500

Drupal usual uptade procedure:

  1. Backup your current site.
  2. Switch your site to the maintenance mode.
  3. Download and unzip the new Drupal core.
  4. Remove the old Drupal files except /sites on the web server
  5. Upload new version without /sites
  6. If needed apply changes to the settings.php in /sites/default and edit sites specific entries (e.g. uname, pass, db, host)

If after the uploading new files you run into 500 internal server error you need to read this:

https://drupal.org/node/1962780

Simply speaking I had to make a significant replacement in .htaccess file:

<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">

instead

<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(|~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$">