Closed
Bug 797236
Opened 12 years ago
Closed 12 years ago
[bedrock] /b/ redirect for /firefoxos
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Infrastructure & Operations Graveyard
WebOps: Other
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.
Assignee | ||
Comment 1•12 years ago
|
||
redirects added to dev and stage. they should be available within 30 minutes for testing.
Assignee: server-ops-webops → cturra
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•12 years ago
|
||
(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.
Assignee | ||
Comment 3•12 years ago
|
||
redirects committed to prod puppet repo and should be live in about 30 minutes.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 4•12 years ago
|
||
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 → ---
Assignee | ||
Comment 5•12 years ago
|
||
updated rewrites committed to dev/stage and should now be available.
Comment 6•12 years ago
|
||
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]
Assignee | ||
Comment 7•12 years ago
|
||
updated rewrites in dev/stage confirmed by :rik in #it. these rewrites have now been applied to prod also.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Comment 8•12 years ago
|
||
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
Comment 9•12 years ago
|
||
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 → ---
Assignee | ||
Comment 10•12 years ago
|
||
: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.
Comment 11•12 years ago
|
||
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
Comment 12•12 years ago
|
||
It doesn't appear to be working on stage. Was the original rewrite rule removed?
Comment 13•12 years ago
|
||
The RewriteRules in the .htaccess file don't start with a slash. Should this one not either?
Assignee | ||
Comment 14•12 years ago
|
||
: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.
Comment 15•12 years ago
|
||
:ctura - working now. Thanks! OK to go to prod.
Comment 16•12 years ago
|
||
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
Comment 17•12 years ago
|
||
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
Assignee | ||
Comment 18•12 years ago
|
||
: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: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•5 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•