Skip to content
Permalink
Browse files

fix: update to forced redirects (#37337)

  • Loading branch information...
raisedadead committed Oct 16, 2019
1 parent 61b60a3 commit 6db529252184d4d705568620a178adbf54d9a559
@@ -12,7 +12,7 @@ https://freecodecamp-org.netlify.com/* https://www.freecodecamp.org/:spla


#api redirect
/internal/* https://api.example.com/internal/:splat 200
/internal/* https://api.example.com/internal/:splat 200!

# pages
/about https://news.example.com/about 200
@@ -35,13 +35,13 @@ https://freecodecamp-org.netlify.com/* https://www.freecodecamp.org/:spla
/news/* https://news.example.com/:splat 200

# auth redirects
/deprecated-signin https://api.example.com/signin 200
/email-signin https://api.example.com/signin 200
/login https://api.example.com/signin 200
/logout https://api.example.com/signout 200
/passwordless-change https://api.example.com/confirm-email 200
/signin https://api.example.com/signin 200
/signup https://api.example.com/signin 200
/deprecated-signin https://api.example.com/signin 200!
/email-signin https://api.example.com/signin 200!
/login https://api.example.com/signin 200!
/logout https://api.example.com/signout 200!
/passwordless-change https://api.example.com/confirm-email 200!
/signin https://api.example.com/signin 200!
/signup https://api.example.com/signin 200!

# certification redirects
/:username/front-end-certification /certification/:username/legacy-front-end 301
@@ -50,9 +50,9 @@ https://freecodecamp-org.netlify.com/* https://www.freecodecamp.org/:spla
/:username/full-stack-certification /certification/:username/full-stack 301

# unsubscribe redirects
/u/* https://api.example.com/u/:splat 200
/ue/* https://api.example.com/ue/:splat 200
/unsubscribe/* https://api.example.com/unsubscribe/:splat 200
/u/* https://api.example.com/u/:splat 200!
/ue/* https://api.example.com/ue/:splat 200!
/unsubscribe/* https://api.example.com/unsubscribe/:splat 200!

# misc redirects
/agile / 301
@@ -33,7 +33,7 @@ https://freecodecamp-org.netlify.com/* https://www.freecodecamp.org/:spla
#api redirect
/internal/* #{{API}}/internal/:splat 200
/internal/* #{{API}}/internal/:splat 200!
# pages
/about #{{NEWS}}/about 200
@@ -56,13 +56,13 @@ https://freecodecamp-org.netlify.com/* https://www.freecodecamp.org/:spla
/news/* #{{NEWS}}/:splat 200
# auth redirects
/deprecated-signin #{{API}}/signin 200
/email-signin #{{API}}/signin 200
/login #{{API}}/signin 200
/logout #{{API}}/signout 200
/passwordless-change #{{API}}/confirm-email 200
/signin #{{API}}/signin 200
/signup #{{API}}/signin 200
/deprecated-signin #{{API}}/signin 200!
/email-signin #{{API}}/signin 200!
/login #{{API}}/signin 200!
/logout #{{API}}/signout 200!
/passwordless-change #{{API}}/confirm-email 200!
/signin #{{API}}/signin 200!
/signup #{{API}}/signin 200!
# certification redirects
/:username/front-end-certification /certification/:username/legacy-front-end 301
@@ -71,9 +71,9 @@ https://freecodecamp-org.netlify.com/* https://www.freecodecamp.org/:spla
/:username/full-stack-certification /certification/:username/full-stack 301
# unsubscribe redirects
/u/* #{{API}}/u/:splat 200
/ue/* #{{API}}/ue/:splat 200
/unsubscribe/* #{{API}}/unsubscribe/:splat 200
/u/* #{{API}}/u/:splat 200!
/ue/* #{{API}}/ue/:splat 200!
/unsubscribe/* #{{API}}/unsubscribe/:splat 200!
# misc redirects
/agile / 301

0 comments on commit 6db5292

Please sign in to comment.
You can’t perform that action at this time.