Skip to content

Instantly share code, notes, and snippets.

@josialoos
Last active December 16, 2015 19:39
Show Gist options
  • Select an option

  • Save josialoos/5487088 to your computer and use it in GitHub Desktop.

Select an option

Save josialoos/5487088 to your computer and use it in GitHub Desktop.
server php version per .htaccess anpassen
Version: WP 3.5.x
Erste Zeile ändert die php-Version. Wichtig ist, dass der Befehl in der htaccess möglichst ganz oben steht.
addhandler php53-cgi .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment