Skip to content

Commit

Permalink
Add redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz committed Apr 5, 2021
1 parent 4f134c4 commit c0ffaa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,3 @@ command = "git submodule update --init --recursive --depth 1 && make production-
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"

[[redirects]]
from = "/pt/*"
to = "/pt-br/:splat"
status = 302
2 changes: 2 additions & 0 deletions static/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
/no/docs/ /no/docs/home/ 301!
/pl/docs/ /pl/docs/home/ 301!
/pt/docs/ /pt/docs/home/ 301!
/pt-br/docs/ /pt-br/docs/home/ 301!
/pt/* /pt-br/:splat 302!
/ru/docs/ /ru/docs/home/ 301!
/uk/docs/ /uk/docs/home/ 301!
/vi/docs/ /vi/docs/home/ 301!
Expand Down

0 comments on commit c0ffaa5

Please sign in to comment.