This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure canonical domain | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Use one of these two: | |
# Rewrite www.domain.com -> domain.com | |
RewriteCond %{HTTP_HOST} . | |
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensure HTTPS | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Block WordPress xmlrpc.php requests | |
<Files xmlrpc.php> | |
#Require ip xxx.xxx.xxx.xx1 | |
#Require ip xxx.xxx.xxx.xx2 | |
#... add more enabled IP addresses as needed! | |
Require all denied | |
</Files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Block author scans | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{QUERY_STRING} (author=\d+) [NC] | |
RewriteRule .* - [F] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deny access to sensiticve files | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} (.*(debug|error).*\.log|error_log)$ [NC] | |
RewriteRule .* - [F,L,NC] | |
</IfModule> | |
<IfModule !mod_rewrite.c> | |
<FilesMatch "(?i)(.*(debug|error).*\.log|error_log)$"> | |
<IfModule mod_authz_core.c> | |
Require all denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @nuxt/generator v2.14.3 (c) 2016-2020 | |
* - All the amazing contributors | |
* Released under the MIT License. | |
* Website: https://nuxtjs.org | |
*/ | |
'use strict'; | |
Object.defineProperty(exports, '__esModule', { value: true }); |