Closed Bug 682023 Opened 13 years ago Closed 13 years ago

[SEO] Force Google to use our own descriptions over ones retrieved from dmoz

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: kohei, Assigned: rik)

References

()

Details

(Whiteboard: r=94328, b=trunk)

+++ This bug was initially created as a clone of Bug #632665 +++

Bug 632665 added new descriptions to the Firefox landing pages but Google still shows descriptions retrieved from dmoz. While Google Directory is gone, Google continues to use the dmoz data.

http://www.google.com/search?hl=en&q=Firefox
http://www.dmoz.org/Computers/Software/Internet/Clients/Web/Browsers/Firefox/

You forgot to set the "noodp" flag.

Add the following meta tag to those specific pages

> <meta name="robots" content="noodp">

or, add the following PHP code to prefetch.php (or somewhere) for site-wide.

> header('X-Robots-Tag: noodp');

and you're done!

http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35264
Fixed with r94328.
Assignee: nobody → anthony
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: qawanted
Resolution: --- → FIXED
Whiteboard: r=94328, b=trunk
Target Milestone: --- → 3.8
Anthony, I'm not seeing the X-Robots-Tag Header when I use curl. How do i test this


curl -I -H 'X-Robots-Tag:noodp' http://www.mozilla.org/en-US/firefox/new/ 
HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: pm-web03
Vary: Accept-Encoding
Cache-Control: max-age=900
Content-Type: text/html; charset=UTF-8
Date: Tue, 30 Aug 2011 21:31:56 GMT
Expires: Tue, 30 Aug 2011 21:46:56 GMT
Transfer-Encoding: chunked
Connection: Keep-Alive
X-Powered-By: PHP/5.2.9
X-Cache-Info: caching
raymond: I haven't pushed that to mozilla.org yet because you haven't QAed it so you should test http://www-trunk.stage.mozilla.com/en-US/firefox/new/
qa-verified-trunk 
HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: dm-cms03
Vary: Accept-Encoding
Cache-Control: max-age=900, private, private
Content-Type: text/html; charset=UTF-8
Date: Wed, 31 Aug 2011 17:46:21 GMT
Expires: Wed, 31 Aug 2011 18:01:21 GMT
Transfer-Encoding: chunked
Connection: Keep-Alive
X-Robots-Tag: noodp
X-Powered-By: PHP/5.1.6
X-Cache-Info: not cacheable; response specified "Cache-Control: private"
Keywords: qawanted
Blocks: 667557
Pushed with r94564.
verified fixed 

curl -I -H 'X-Robots-Tag:noodp' http://www.mozilla.org/en-US/firefox/new/ 
HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: pm-web03
Vary: Accept-Encoding
Cache-Control: max-age=900
Content-Type: text/html; charset=UTF-8
Date: Wed, 31 Aug 2011 18:50:20 GMT
Expires: Wed, 31 Aug 2011 19:05:20 GMT
Transfer-Encoding: chunked
X-Robots-Tag: noodp
X-Powered-By: PHP/5.2.9
Connection: Keep-Alive
X-Cache-Info: cached
Status: RESOLVED → VERIFIED
Component: www.mozilla.org/firefox → www.mozilla.org
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.