Closed Bug 797236 Opened 13 years ago Closed 13 years ago

[bedrock] /b/ redirect for /firefoxos

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: craigcook, Assigned: cturra)

References

()

Details

I'm copying this from a previous bug; double-check that I've got it right. Regex hurts my brain. It's a standard "strip the /b/" rewrite: RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefoxos(.*)$ /b/$1firefoxos$2 [PT] You know the drill: dev, stage, prod.
redirects added to dev and stage. they should be available within 30 minutes for testing.
Assignee: server-ops-webops → cturra
Status: NEW → ASSIGNED
(In reply to Chris Turra [:cturra] from comment #1) > redirects added to dev and stage. they should be available within 30 minutes > for testing. Stage looks good.
redirects committed to prod puppet repo and should be live in about 30 minutes.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Actually, it should be: RewriteRule ^/en-US/firefoxos(.*)$ /b/en-US/firefox$1 [PT] RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefoxos(.*)$ /en-US/firefoxos$2 [L,R=302] cause we only have a en-US version at the moment.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blocks: 792482
updated rewrites committed to dev/stage and should now be available.
Oops sorry, I had a typo on the first line. Can you change that to: RewriteRule ^/en-US/firefoxos(.*)$ /b/en-US/firefoxos$1 [PT] RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefoxos(.*)$ /en-US/firefoxos$2 [L,R=302]
updated rewrites in dev/stage confirmed by :rik in #it. these rewrites have now been applied to prod also.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
curl -I https://www.mozilla.org/firefoxos HTTP/1.1 302 Found Server: Apache X-Backend-Server: bedrock4.webapp.scl3.mozilla.com Vary: Accept-Encoding Content-Type: text/html; charset=iso-8859-1 Date: Wed, 03 Oct 2012 18:53:18 GMT Location: https://www.mozilla.org/en-US/firefoxos Transfer-Encoding: chunked Connection: Keep-Alive X-Cache-Info: not cacheable; response is 302 without expiry time curl -I https://www.mozilla.org/en-US/firefoxos HTTP/1.1 301 MOVED PERMANENTLY Server: Apache X-Backend-Server: bedrock4.webapp.scl3.mozilla.com Vary: Accept-Encoding Cache-Control: max-age=600 Content-Type: text/html; charset=utf-8 Date: Wed, 03 Oct 2012 18:53:44 GMT Location: https://www.mozilla.org/en-US/firefoxos/ Expires: Wed, 03 Oct 2012 19:03:44 GMT Transfer-Encoding: chunked Connection: Keep-Alive x-frame-options: DENY X-Cache-Info: caching
Status: RESOLVED → VERIFIED
We now need to allow locales other than just en-US on this page. Please use the original rule from craigcook in #c0.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
:pmac - this update has been pushed to dev and stage for testing. please let me know when you have reviewed it and given the change a thumbs up for prod.
url -I https://www.allizom.org/de/firefoxos HTTP/1.1 302 Found Server: Apache X-Backend-Server: bedrock1.stage.webapp.phx1.mozilla.com Vary: Accept-Encoding Content-Type: text/html; charset=iso-8859-1 Date: Mon, 26 Nov 2012 17:53:03 GMT Location: https://www.allizom.org/en-US/firefoxos Transfer-Encoding: chunked Connection: Keep-Alive X-Cache-Info: not cacheable; response is 302 without expiry time curl -I https://www.allizom.org/fr/firefoxos HTTP/1.1 302 Found Server: Apache X-Backend-Server: bedrock1.stage.webapp.phx1.mozilla.com Vary: Accept-Encoding Content-Type: text/html; charset=iso-8859-1 Date: Mon, 26 Nov 2012 17:53:25 GMT Location: https://www.allizom.org/en-US/firefoxos Transfer-Encoding: chunked Connection: Keep-Alive X-Cache-Info: not cacheable; response is 302 without expiry time
It doesn't appear to be working on stage. Was the original rewrite rule removed?
The RewriteRules in the .htaccess file don't start with a slash. Should this one not either?
:pmac - looks like i forgot to comment out the old rewrites in stage (oops). i have corrected this and committed the changes, they should be available within 30 minutes.
:ctura - working now. Thanks! OK to go to prod.
curl -I https://www.allizom.org/fr/firefoxos HTTP/1.1 301 MOVED PERMANENTLY Server: Apache X-Backend-Server: bedrock1.stage.webapp.scl3.mozilla.com Vary: Accept-Encoding Cache-Control: max-age=600 Content-Type: text/html; charset=utf-8 Date: Mon, 26 Nov 2012 21:39:50 GMT Location: https://www.allizom.org/fr/firefoxos/ Expires: Mon, 26 Nov 2012 21:49:52 GMT Transfer-Encoding: chunked Connection: Keep-Alive x-frame-options: DENY X-Cache-Info: caching curl -I https://www.allizom.org/de/firefoxos HTTP/1.1 301 MOVED PERMANENTLY Server: Apache X-Backend-Server: bedrock1.stage.webapp.scl3.mozilla.com Vary: Accept-Encoding Cache-Control: max-age=600 Content-Type: text/html; charset=utf-8 Date: Mon, 26 Nov 2012 21:40:20 GMT Location: https://www.allizom.org/de/firefoxos/ Expires: Mon, 26 Nov 2012 21:50:20 GMT Transfer-Encoding: chunked Connection: Keep-Alive x-frame-options: DENY X-Cache-Info: caching confirmed
The below is what I was expecting, and what I see. So we're good to go to prod. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ curl -I https://www.allizom.org/pt-BR/firefoxos/ HTTP/1.1 200 OK Server: Apache X-Backend-Server: bedrock1.stage.webapp.phx1.mozilla.com Vary: Accept-Encoding Cache-Control: max-age=600 Content-Type: text/html; charset=utf-8 Date: Tue, 27 Nov 2012 00:28:40 GMT Expires: Tue, 27 Nov 2012 00:38:41 GMT Transfer-Encoding: chunked Connection: Keep-Alive x-frame-options: DENY X-Cache-Info: caching ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ curl -I https://www.allizom.org/de/firefoxos/ HTTP/1.1 302 FOUND Server: Apache X-Backend-Server: bedrock1.stage.webapp.phx1.mozilla.com Vary: Accept-Encoding Cache-Control: max-age=600 Content-Type: text/html; charset=utf-8 Date: Tue, 27 Nov 2012 00:28:50 GMT Location: https://www.allizom.org/en-US/firefoxos/ Expires: Tue, 27 Nov 2012 00:38:51 GMT Transfer-Encoding: chunked Connection: Keep-Alive x-frame-options: DENY X-Cache-Info: caching
:pmac - push to prod complete :) marking as r/fixed. % curl -I https://www.mozilla.org/de/firefoxos HTTP/1.1 301 MOVED PERMANENTLY Server: Apache X-Backend-Server: bedrock3.webapp.scl3.mozilla.com Vary: Accept-Encoding Cache-Control: max-age=600 Content-Type: text/html; charset=utf-8 Date: Tue, 27 Nov 2012 17:45:07 GMT Location: https://www.mozilla.org/de/firefoxos/ Expires: Tue, 27 Nov 2012 17:55:07 GMT Transfer-Encoding: chunked Connection: Keep-Alive x-frame-options: DENY X-Cache-Info: caching
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Blocks: 823302
No longer blocks: 823302
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.