Closed
Bug 784923
Opened 12 years ago
Closed 12 years ago
In-article redirects should be 301 redirects, not 302 redirects
Categories
(developer.mozilla.org Graveyard :: Editing, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: teoli, Unassigned)
References
Details
We can add REDIRECT in the wiki using the Kuma REDIRECT syntax.
It looks that these redirects become 302 Temporary REDIRECT instead of 301.
They are semantically 301 Permanent Redirect. Also this impairs SEO as search engines consider both pages as different and don't merge links.
We still have -moz-* pages in Google (at a better position) instead of the "new" unprefixed pages. And some pages were renamed last year.
Reporter | ||
Updated•12 years ago
|
Summary: REDIRECT defines inside a wiki page lead to a 302 instead of a 301 → REDIRECTs defined inside a wiki page lead to a 302 instead of a 301
Updated•12 years ago
|
Summary: REDIRECTs defined inside a wiki page lead to a 302 instead of a 301 → In-article redirects should be 301 redirects, not 302 redirects
Reporter | ||
Comment 1•12 years ago
|
||
I'm not sure, but it may be that we only need to change:
https://github.com/mozilla/kuma/blob/master/apps/wiki/views.py#LC325
from
return HttpResponseRedirect(url)
to
return HttpResponsePermanentRedirect(url)
Comment 2•12 years ago
|
||
Commits pushed to master at https://github.com/mozilla/kuma
https://github.com/mozilla/kuma/commit/da76009c60ed67b63e493b4f0b3acdbf97a20df5
fix bug 784923 - Make redirects 301s instead of 302s
https://github.com/mozilla/kuma/commit/6460241dbd4d94a62624f068c293a85cca713cd3
Merge pull request #550 from darkwing/301-redirects-784923
fix bug 784923 - Make redirects 301s instead of 302s
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 3•12 years ago
|
||
verified fixed https://developer.allizom.org/en-US
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•12 years ago
|
Version: Kuma → unspecified
Assignee | ||
Updated•12 years ago
|
Component: Docs Platform → Editing
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•