Closed Bug 584885 Opened 15 years ago Closed 15 years ago

Redirect forum/6 to questions?tagged=FxHome

Categories

(support.mozilla.org :: Questions, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: paulc, Assigned: paulc)

References

()

Details

Attachments

(1 file, 2 obsolete files)

After bug 584712 is run, we can safely redirect these old urls over to the questions app.
Migrated questions keep the IDs so we can also do the 2nd redirect.
Attachment #463332 - Flags: review?(james)
Attachment #463332 - Flags: review?(erik)
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-
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.
Attached patch v2, minor change (obsolete) — Splinter Review
Fixed.
Attachment #463332 - Attachment is obsolete: true
Attachment #463350 - Flags: review?(erik)
Attachment #463332 - Flags: review?(james)
Attachment #463350 - Flags: review?(erik) → review+
(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.
Attachment #463350 - Attachment is obsolete: true
Attachment #463364 - Flags: review?(erik)
Attachment #463364 - Flags: review?(erik) → review+
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
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
Target Milestone: 1.5.7 → 2.2.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: