Diễn Đàn SEO Panda - SEO Panda Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Diễn Đàn SEO Panda - SEO Panda Forum

Diễn Đàn SEO Panda Dành Cho Các SEOers Tự Do Thảo Luận SEO - SEO Panda Forum - Free SEO Forum to share your knowledge to the world
 
HomeLatest imagesSearchRegisterLog in
Search
 
 

Display results as :
 
Rechercher Advanced Search
Latest topics
» Top 10 SEO Tools ( fresh links )
Using The X-Robots-Tag in Server Headers on WordPress EmptyWed Feb 04, 2015 10:56 pm by tranvanchienhn

» Bán Textlink Pr4-Pr6 (1PR9)
Using The X-Robots-Tag in Server Headers on WordPress EmptyWed Feb 04, 2015 10:54 pm by tranvanchienhn

» Google’s Penguin Update: What it is, What it isn’t, and What to Do
Using The X-Robots-Tag in Server Headers on WordPress EmptyTue Apr 22, 2014 3:23 pm by johnaclayton

» Free Click Bank Affiliate Tool
Using The X-Robots-Tag in Server Headers on WordPress EmptyTue Apr 22, 2014 3:21 pm by johnaclayton

» SEO is Dead – Long Live SEO
Using The X-Robots-Tag in Server Headers on WordPress EmptyTue Apr 22, 2014 3:17 pm by johnaclayton

» Local SEO là gì - 10 Thủ thuật Local SEO
Using The X-Robots-Tag in Server Headers on WordPress EmptyWed Apr 02, 2014 3:31 pm by bao.seoinet

» Get High Rankings by Building Authoritative, Irrelevant links?
Using The X-Robots-Tag in Server Headers on WordPress EmptySat Sep 21, 2013 9:32 pm by kyostyle1

» The best Engineering software
Using The X-Robots-Tag in Server Headers on WordPress EmptySat Sep 14, 2013 2:12 pm by read2

» Tuxedos- Traditional Interest Trend
Using The X-Robots-Tag in Server Headers on WordPress EmptyWed Sep 11, 2013 2:16 pm by taiiwin


 

 Using The X-Robots-Tag in Server Headers on WordPress

Go down 
AuthorMessage
khiemsound




Posts : 1016
Points : 25115
Join date : 2012-03-27

Using The X-Robots-Tag in Server Headers on WordPress Empty
PostSubject: Using The X-Robots-Tag in Server Headers on WordPress   Using The X-Robots-Tag in Server Headers on WordPress EmptyWed Apr 18, 2012 9:30 am

Today we’ve been spending some time thinking about and implementing the X-Robots-Tag, a lesser known Robots Exclusion Protocol for “noarchive”, “noindex”, “nofollow”, and “nosnippet” supported by Google, Yahoo and Bing. Why lesser known? The X-Robots-Tag likes to hide in your server header responses rather than in the element of a web page. Rather handy in some cases, and I’m about to tell you why.


Photo by: maxkiesler

It seemed pretty relevant to write a blog post about the subject of REP, since Danny at Search Engine Land took a look at ACAP vs Robots.txt very recently – an article that in my mind, provides an excellent framework for understanding exactly what’s included in Robots Exclusion Protocol while providing an insight into how some news content providers feel about their content being handled by search engines.
The X-Robots-Tag

I’ve been interested in REP for a different reason to our pals in the news industry. An indexed text file with a cache link displayed in Google’s SERPS for SEOgadget.co.uk. Small fry compared to the mighty Murdoch Google block party story, but definitely more interesting. Particulary timely, as I’ve been looking at how removing your Google cache affects your search results.


Only web pages have a head

It sounds obvious but you need to be able to add in the of your webpage to remove that cached link – but the problem with our indexed txt file is there is no , it’s just a text file. This is where the X-Robots-Tag comes in.
Everything has a server header response

Here’s a little snapshot of live HTTP Headers, one of my favourite Firefox SEO Tools, with the X-Robots response in action:



You can chain different directives just like you would in your meta header, so I thought I’d throw noodp in for the demonstration, too.
Remove the noarchive from your head and try it in .htaccess

To implement a X-Robots-Tag in your server headers in WordPress, you just need to FTP to wherever your WordPress installation lives and look for the .htaccess file inside your /public_html/ directory:



If you’re not terribly used to working with files like .htaccess, I recommend you read this guide to editing htaccess from Windows. To get the noodp, noarchive response you see in my live http headers screenshot, you’ll need to add code like this:

# Set HTTP x-robots-Tag response header to "noarchive" for all page requests
Header set x-robots-Tag: "noodp, noarchive"

Upload the new version of your .htaccess to your public_html folder and recheck your server header response. Obviously I removed the noarchive in the header.php template in WordPress, because that’s all part of my test.

Other uses may include issuing a noindex on affiliate / tracked exit click URLs that redirect via a 302. I’m testing that one currently – bottom line is the usual solution of excluding via robots.txt and nofollowing all links to those URLs doesn’t nessecarily keep them out of the index. Would an X-Robots-Tag set to noindex? Handy stuff to know in my oppinion.
Some resources

Other than the links I’ve already put in the post, I found numerous resources which all make for interesting reading around the subject of REP with the X-Robots-Tag and .htaccess.

X-Robots Tag NoArchive Examples

Useful examples of X-Robots exclusion in action – handy code snippet for filetype and directory specific exclusion rules

How to remove feeds in search results

Classic post from Joost before Google bought up feedburner with instructions on how to add noarchive to an XML feed. Also check out this post for a fuller exploration of X-Robots REP with more code examples.
Back to top Go down
 
Using The X-Robots-Tag in Server Headers on WordPress
Back to top 
Page 1 of 1
 Similar topics
-
» This Page Cannot Be Found: Check Your Error Page Headers
» Proxy Server Finder v1.090203
» 10 thủ thuật SEO cơ bản tối ưu hóa WordPress
» Bảo mật cho Blog WordPress cá nhân
» Cài đặt cập nhật bảo mật WordPress phiên bản 2.6.3

Permissions in this forum:You cannot reply to topics in this forum
Diễn Đàn SEO Panda - SEO Panda Forum :: Search Engine Optimization :: On-Page SEO-
Jump to: