-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreference2.groupdocs.com.redirects.txt
More file actions
31 lines (31 loc) · 1.56 KB
/
Copy pathreference2.groupdocs.com.redirects.txt
File metadata and controls
31 lines (31 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Redirect rules for reference2.groupdocs.com (staging) — nginx-style, consumed by the edge layer.
#
# [2026-06-18] Site consolidated to English-only. Every product was previously built
# per-locale and served at /<product>/<locale>/... (English at /<product>/...).
# Strip the locale segment that sits AFTER the product so old localized URLs land on
# their English equivalent, e.g. /annotation/ru/net/ -> /annotation/net/
#
# Note: unlike products.groupdocs.com (where the locale is the first path segment),
# reference URLs carry the locale as the SECOND segment, after the product family.
rewrite ^/([^/]+)/ar(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/cs(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/de(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/el(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/es(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/fr(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/hi(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/hu(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/id(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/it(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/ja(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/ko(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/nl(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/pl(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/pt(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/ru(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/sv(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/th(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/tr(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/vi(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/zh-hant(/.*)?$ /$1$2 permanent;
rewrite ^/([^/]+)/zh(/.*)?$ /$1$2 permanent;