WP NET adds some custom settings and configurations to your site's wp-config.php
and .htaccess
files -- these customisations help with performance and security.
Please do not edit or move any of the WP NET custom configuration code. If you edit or remove these lines, they will be over-written by a nightly maintenance script.
File: wp-config.php
/** ------ WPNET CONFIG - DO NOT EDIT - CHANGES WILL BE OVER WRITTEN ------ **/
define( 'WP_POST_REVISIONS', false );
define( 'WP_ALLOW_MULTISITE', false );
define( 'COMPRESS_CSS', true );
define( 'COMPRESS_SCRIPTS', true );
define( 'DISALLOW_FILE_EDIT', true );
define( 'IMAGE_EDIT_OVERWRITE', true );
define( 'AUTOMATIC_UPDATER_DISABLED', false );
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
/** --------------------------- WPNET CONFIG END -------------------------- **/
File: .htaccess
# BEGIN WP NET CONFIG - DO NOT EDIT - CHANGES WILL BE OVER WRITTEN
# Blocked in global config: .user.ini, .htaccess, .wp-stats, xmlrpc.php, -Indexes
RewriteEngine On
RewriteBase /
# Disable PHP execution in uploads
RewriteRule ^wp\-content/uploads/.*\.(?:php[1-7]?|pht|phtml?|phps)$ - [NC,F]
# Block WP include files
RewriteRule ^wp-admin/includes/ - [F]
RewriteRule !^wp-includes/ - [S=2]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F]
RewriteRule ^wp-includes/theme-compat/ - [F]
# END WP NET CONFIG
From time to time, we may make changes and improvements to these customisations, so the above examples may be out-of-date.