We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6db1e08 commit a6200c3Copy full SHA for a6200c3
1 file changed
nginx.conf.sigil
@@ -62,16 +62,16 @@ server {
62
63
# Rewrite old style URLs /5/en/ to /5.x/ (remove /en/)
64
# But keep other languages like /5/ja/ -> /5.x/ja/
65
- location ~ ^/([2-9]|[1-9][0-9]+)/en/(.*)$ {
+ location ~ "^/([2-9]|[1-9][0-9]+)/en/(.*)$" {
66
return 301 /$1.x/$2;
67
}
68
69
- location ~ ^/([2-9]|[1-9][0-9]+)/([a-z]{2})/(.*)$ {
+ location ~ "^/([2-9]|[1-9][0-9]+)/([a-z]{2})/(.*)$" {
70
return 301 /$1.x/$2/$3;
71
72
73
# Proxy pass to version specific containers using map
74
- location ~ ^/([2-9]|[1-9][0-9]+)\.x/(.*) {
+ location ~ "^/([2-9]|[1-9][0-9]+)\.x/(.*)" {
75
set $version_number $1;
76
set $request_path $2;
77
0 commit comments