Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@markonikolic985
Created December 18, 2017 08:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markonikolic985/bcd91a1125331bfa95942aa55fd140c2 to your computer and use it in GitHub Desktop.
Save markonikolic985/bcd91a1125331bfa95942aa55fd140c2 to your computer and use it in GitHub Desktop.
<?php
defined( 'ABSPATH' ) or die( 'Cheatin&#8217; uh?' );
/**
* Plugin Name: WP Rocket | Fix Error 500
* Description: Prevents the dreaded error 500 from appearing.
* Author: WP Rocket Support Team
* Author URI: http://wp-rocket.me/
* License: GNU General Public License v3 or later
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
// Each of these lines removes 1 block of WP Rocket rules from .htaccess.
add_filter('rocket_htaccess_mod_expires', '__return_false');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment