diff --git a/redirects.map b/redirects.map index cc7d68d29..f33e2ef7f 100644 --- a/redirects.map +++ b/redirects.map @@ -2,7 +2,7 @@ ~^/(|en/?)?$ /2.5/en/; # Redirect /en without version to current stable version -~^/en/(?.+)$ /2.5/en/${path}; +~^/en/(?(?!media/?).+)$ /2.5/en/${path}; # Redirect /stable to current stable version ~^/stable/?$ /2.5/en/; @@ -29,7 +29,7 @@ #"~^/1\.25/(?[a-zA-Z]{2})(/|/index)?$" /1.25/${language}/getting-started; # Redirect old media paths -#"~^/(?[0-9-\._]+|devel)/en/media/(?.+)$" /${version}/en/media/${filename}; +"~^/(?[0-9-\._]+|devel)/en/media/(?.+)$" /en/media/${filename}; # Redirect help-google to clouds-gce "~^/(?[0-9-\._]+|devel)/en/help-google/?$" /${version}/en/clouds-gce;