Closed
Bug 584885
Opened 15 years ago
Closed 15 years ago
Redirect forum/6 to questions?tagged=FxHome
Categories
(support.mozilla.org :: Questions, task)
support.mozilla.org
Questions
Tracking
(Not tracked)
VERIFIED
FIXED
2.2.1
People
(Reporter: paulc, Assigned: paulc)
References
()
Details
Attachments
(1 file, 2 obsolete files)
616 bytes,
patch
|
erik
:
review+
|
Details | Diff | Splinter Review |
After bug 584712 is run, we can safely redirect these old urls over to the questions app.
Assignee | ||
Comment 1•15 years ago
|
||
Migrated questions keep the IDs so we can also do the 2nd redirect.
Attachment #463332 -
Flags: review?(james)
Assignee | ||
Updated•15 years ago
|
Attachment #463332 -
Flags: review?(erik)
Comment 2•15 years ago
|
||
Comment on attachment 463332 [details] [diff] [review]
v1, redirects /forum/6 to /en-US/questions?tagged=FxHome, and threads -> questions
I took the liberty of removing some unneeded backslashes, so this is what I actually tested:
RewriteRule ^([-a-zA-Z]+/)?forum/6/?$ /en-US/questions?tagged=FxHome [L,QSA,R=301]
RewriteRule ^([-a-zA-Z]+/)?forum/6(.*) /en-US/questions$2 [L,QSA,R=301]
http://localhost/en-US/forum/66 redirects to http://localhost/en-US/questions6, which is weird.
Attachment #463332 -
Flags: review?(erik) → review-
Comment 3•15 years ago
|
||
We should also take the QSA out of the first one, as it makes http://localhost/en-US/forum/6?tagged=greeb redirect to http://localhost/en-US/questions?tagged=FxHome&tagged=greeb. (There aren't any querystring chunks we'd want to hang onto between the forums and questions apps, are there?)
(In reply to comment #1)
Not quite, anything added after thursday won't have the same ID after migration. We're going to have to break links.
Assignee | ||
Comment 5•15 years ago
|
||
Fixed.
Attachment #463332 -
Attachment is obsolete: true
Attachment #463350 -
Flags: review?(erik)
Attachment #463332 -
Flags: review?(james)
Updated•15 years ago
|
Attachment #463350 -
Flags: review?(erik) → review+
Assignee | ||
Comment 6•15 years ago
|
||
(In reply to comment #4)
> (In reply to comment #1)
> Not quite, anything added after thursday won't have the same ID after
> migration. We're going to have to break links.
True. I need to fix that in my migration branch. Sounds like we should just not bother to redirect questions at all, just the forum itself.
Assignee | ||
Comment 7•15 years ago
|
||
Attachment #463350 -
Attachment is obsolete: true
Attachment #463364 -
Flags: review?(erik)
Updated•15 years ago
|
Attachment #463364 -
Flags: review?(erik) → review+
Assignee | ||
Comment 8•15 years ago
|
||
Committed patch v3, r71958.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: Redirect forums/6 to questions?tagged=FxHome → Redirect forum/6 to questions?tagged=FxHome
Updated•15 years ago
|
Flags: in-testsuite?
Comment 9•15 years ago
|
||
Verified FIXED:
http://support-stage.mozilla.com/en-US/forum/6
GET /en-US/forum/6 HTTP/1.1
Host: support-stage.mozilla.com
<snip>
HTTP/1.1 301 Moved Permanently
Date: Fri, 06 Aug 2010 08:39:07 GMT
Server: Apache/2.2.3 (Red Hat)
Location: http://support-stage.mozilla.com/en-US/questions?tagged=FxHome
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•15 years ago
|
Target Milestone: 1.5.7 → 2.2.1
Comment 10•15 years ago
|
||
updated redirect automated test:
http://viewvc.svn.mozilla.org/vc/projects/sumo/tests/frontend/python_tests/test_rewrites.py?revision=75452&view=markup&sortby=date
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•