Closed Bug 1071318 Opened 11 years ago Closed 11 years ago

change redirect for /firefox/mobile

Categories

(www.mozilla.org :: General, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jbertsch, Assigned: jpetto)

References

(Blocks 1 open bug)

Details

(Whiteboard: [kb=1520273] )

Attachments

(1 file, 1 obsolete file)

Hi- Let's change the redirect for /firefox/mobile: old/current redirect point to /firefox/new new redirect will point to /firefox/android when the new page is live in October 2014 Thx, Jen
Depends on: 48960
Depends on: 1048960
No longer depends on: 48960
Assignee: nobody → jon
Whiteboard: [kb=1520273]
:sgarrity - Would you happen to know where the /firefox/mobile/ redirect is specified? It doesn't seem to be in bedrock... If it helps, a curl shows me it first redirects to /firefox/fx/, which then redirects to /firefox/new/. Perhaps this knowledge is contained in one of your ancient, dusty tomes.
Flags: needinfo?(steven)
+Cmore too
Flags: needinfo?(chrismore.bugzilla)
(In reply to Jon Petto [:jpetto] from comment #1) > :sgarrity - Would you happen to know where the /firefox/mobile/ redirect is > specified? It doesn't seem to be in bedrock... > > If it helps, a curl shows me it first redirects to /firefox/fx/, which then > redirects to /firefox/new/. > > Perhaps this knowledge is contained in one of your ancient, dusty tomes. I've consulted one of the most ancient scripts in the Great Book of Subversion and discovered this: On line #477 of .htaccess in the mozilla.com svn repo: > RewriteRule ^(en-US/)?firefox/mobile[/]?$ /firefox/fx/ [r=permanent] http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/tags/production/.htaccess?view=markup#l477 This was created for Bug 768477. Then, /firefox/fx/ is redirected to /firefox/new/ in the bedrock global.conf: https://github.com/mozilla/bedrock/blob/master/etc/httpd/global.conf#L790
Flags: needinfo?(steven)
(In reply to Steven Garrity [:sgarrity] from comment #3) > (In reply to Jon Petto [:jpetto] from comment #1) > > :sgarrity - Would you happen to know where the /firefox/mobile/ redirect is > > specified? It doesn't seem to be in bedrock... > > > > If it helps, a curl shows me it first redirects to /firefox/fx/, which then > > redirects to /firefox/new/. > > > > Perhaps this knowledge is contained in one of your ancient, dusty tomes. > > I've consulted one of the most ancient scripts in the Great Book of > Subversion and discovered this: > > On line #477 of .htaccess in the mozilla.com svn repo: > > > RewriteRule ^(en-US/)?firefox/mobile[/]?$ /firefox/fx/ [r=permanent] > > http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/tags/production/. > htaccess?view=markup#l477 > > This was created for Bug 768477. > > Then, /firefox/fx/ is redirected to /firefox/new/ in the bedrock > global.conf: > https://github.com/mozilla/bedrock/blob/master/etc/httpd/global.conf#L790 Yeah, we also have /mobile redirected to /firefox/partners. jbertsch: do we want to change /mobile and /firefox/mobile to point to /firefox/android/ or just /firefox/mobile/ ? Looks like :sgarrity has dug up the double redirect. We should dig through .htaccess sometime and resolve the multiple redirect issues and do single redirects to the new source. Multiple round trips is a waste of server time.
Flags: needinfo?(chrismore.bugzilla)
Flags: needinfo?(jbertsch)
Hi Jon- Yes please: change /mobile and /firefox/mobile to point to /firefox/android/ Thx, Jen
Flags: needinfo?(jbertsch)
Since the redirect in the PHP-site .htaccess file is permanent, I'd like to get it out of there as soon as possible. Jon, does this the following plan sound reasonable? 1. Add a /firefox/mobile/ -> /firefox/fx/ redirect to bedrock 2. Remove the similar redirect from the PHP .htaccess file 3. When the new Android page is ready, update the bedrock redirect accordingly
That sounds like a great idea. :)
This patch removes /firefox/mobile/ -> /firefox/fx/ redirects that are handled in bedrock as of https://github.com/mozilla/bedrock/pull/2389
Attachment #8508132 - Flags: review?(pmac)
Comment on attachment 8508132 [details] [diff] [review] bug-1071318-remove-mobile-redirect.diff Review of attachment 8508132 [details] [diff] [review]: ----------------------------------------------------------------- ::: .htaccess @@ -481,5 @@ > -# bug 488327, firefox/mobile -> mobile > -# bug 767986, except firefox/mobile/faq, firefox/mobile/features and firefox/mobile/platforms > -RewriteCond %{REQUEST_URI} !firefox/mobile(/faq|/features|/platforms)?[/]?$ > -RewriteRule ^(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?firefox/mobile(.*)[/]?$ /$1mobile$2 [R=permanent] > -RewriteRule ^(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?mobile(/faq|/features|/platforms)[/]?$ /$1firefox/mobile$2/ [R=permanent] This matches a lot more than just /firefox/mobile/. Do we no longer need any of this? Do we redirect from /mobile/* anywhere else?
I'm not confident enough that the other lines I was removing are no longer needed. Here is a more specific patch that removes only the /firefox/mobile/ -> /firefox/fx/ redirect.
Attachment #8508132 - Attachment is obsolete: true
Attachment #8508132 - Flags: review?(pmac)
Attachment #8508650 - Flags: review?(pmac)
Attachment #8508650 - Flags: review?(pmac) → review+
(In reply to Steven Garrity [:sgarrity] from comment #12) > Created attachment 8508650 [details] [diff] [review] > bug-1071318-remove-mobile-redirect-specific.diff Patch applied in trunk in r133681. Merged into tags/stage in r133682 and tags/productions in r133683.
The PR 2388 has already been merged.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: