Skip to content

Commit

Permalink
Merge pull request #233 from mozilla-it/SE-3060-mobile-youtube-redirect
Browse files Browse the repository at this point in the history
feat(ftv.cdn) Redirect a few endpoints to youtube, 404 the rest
  • Loading branch information
bkochendorfer authored Apr 4, 2022
2 parents 5f205e7 + f7f4308 commit 160cc60
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions prod-refractr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1000,3 +1000,17 @@ refracts:
- http://turningred.firefox.com/: 'https://truecolors.firefox.com/?utm_campaign=firefox-disney-us&utm_medium=web&utm_source=redirect&utm_content=turningred.firefox.com'
- http://turningred.firefox.com/?utm_source=dude: 'https://truecolors.firefox.com/?utm_source=dude'
- http://truecolours.firefox.com/: 'https://truecolors.firefox.com/?utm_campaign=firefox-disney-us&utm_medium=web&utm_source=redirect&utm_content=turningred.firefox.com'

# SE-3060
- dsts:
- if: '$request_uri ~ ^/ytht(.*)$'
^: 'm.youtube.com/'
- if: '$request_uri ~ ^/ytfc(.*)$'
^: 'm.youtube.com/'
preserve-path: false
srcs:
- ftv.cdn.mozilla.net
tests:
- http://ftv.cdn.mozilla.net/ytht: https://m.youtube.com/
- http://ftv.cdn.mozilla.net/ytfc: https://m.youtube.com/
- http://ftv.cdn.mozilla.net/ytfcfoo: https://m.youtube.com/

0 comments on commit 160cc60

Please sign in to comment.