Closed Bug 586001 Opened 14 years ago Closed 14 years ago

Add rewrite rule to fix broken links on devmo

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheppy, Assigned: oremj)

Details

We recently reorganized the JavaScript Reference on devmo. Unfortunately, for some reason, Deki failed to generate the redirects on-site that it normally does when pages are moved around. So we now have gazillions of broken links. Can someone please set up a rewrite rule on devmo to direct: https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/ (and all subpages thereof) to: https://developer.mozilla.org/en/JavaScript/Reference/ (otherwise the same)
RewriteRule ^En/Core_JavaScript_1\.5_Reference/(.*) en/JavaScript/Reference/$1 [R,L] tested with Apache 2.2.15.
Assignee: server-ops → jeremy.orem+bugs
Added.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Never mind, the first link was bogus. Dunno where it came from. :)
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
it came from this 2 steps: 1) Google for "javascript sort" , click 3rd entry 2) Go to MDN and search for sort, click 1st entry Both go to: https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/Array/Sort which doesn't exist. This definitely should work, every developer that, like me, google for the javascript functions to get to MDN will get nowhere I'm reopening the bug - please close it again if I'm talking crap, but I'm just being cautious here
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I don't know where that link has coming from. That page moved from that location like a year ago; Google shouldn't be pulling that result up anymore. However, since it is, can we add a rewrite rule like: RewriteRule ^En/Core_JavaScript_1\.5_Reference/Objects/(.*) en/JavaScript/Reference/Objects/$1 [R,L] That should fix these links so they work the way people expect, since Google is apparently taking forever to catch up.
And just out of curiosity, why is MDN's search also pointing to that same link?
The new MDN pages are using Google to do the search. Once you're in the docs, you're using the wiki software's search engine, and you'll get correct links.
Understood, thanks
Removing the old links to MDN could be easily done with Google Webmastertools. You can add URLs you want to removed by wildcard and they usually do so within 24 hours. currently requesting https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/Array/Sort results in four redirects: 1. 302 Found Location http://developer.mozilla.org/en/JavaScript/Reference/Objects/Array/Sort 2. 301 Moved Permanently Location https://developer.mozilla.org/en/JavaScript/Reference/Objects/Array/Sort 3. 302 Found Location https://developer.mozilla.org/ 4. 301 MOVED PERMANENTLY Location https://developer.mozilla.org/en-US/
seeing a lot of complaints about this, so bumping to major. can we figure out what's up with the redirects and also get the google search stuff resolved?
Severity: normal → major
(In reply to comment #10) > Removing the old links to MDN could be easily done with Google Webmastertools. > You can add URLs you want to removed by wildcard and they usually do so within > 24 hours. > > currently requesting > https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Objects/Array/Sort > results in four redirects: > 1. > 302 Found > Location > http://developer.mozilla.org/en/JavaScript/Reference/Objects/Array/Sort > > 2. > 301 Moved Permanently > Location > https://developer.mozilla.org/en/JavaScript/Reference/Objects/Array/Sort > > 3. > 302 Found > Location https://developer.mozilla.org/ > > 4. > 301 MOVED PERMANENTLY > Location https://developer.mozilla.org/en-US/ In this case comment 6 probably won't fix anything. Eric, what do you want me to do with this bug?
Could this extra rewrite rule an option? RewriteRule ^En/Core_JavaScript_1\.5_Reference/Objects/(.*) en/JavaScript/Reference/Global_Objects/$1 [R,L] This would fix the urls found by Google, and still would make the content accessible as long the urls are in Google's index.
Eric, is comment 13 what you want to do?
That looks right to me.
Done.
Status: REOPENED → RESOLVED
Closed: 14 years ago14 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.