We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc00fde commit 07d58dbCopy full SHA for 07d58db
nginx.app.conf
@@ -5,6 +5,21 @@ location ~ /\. {
5
deny all;
6
}
7
8
+# 301 Redirect URLs with trailing /'s as per https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html
9
+rewrite ^/(.*)/$ /$1 permanent;
10
+
11
+# Change // -> / for all URLs, so it works for our php location block, too
12
+merge_slashes off;
13
+rewrite (.*)//+(.*) $1/$2 permanent;
14
15
+# For WordPress bots/users
16
+location ~ ^/(wp-login|wp-admin|wp-config|wp-content|wp-includes|(.*)\.exe) {
17
+ return 301 https://wordpress.com/wp-login.php;
18
+}
19
20
+# Access Log
21
+access_log off;
22
23
location = /favicon.ico {
24
log_not_found off;
25
0 commit comments