Mobile app version of vmapp.org
Login or Join
Steve110

: How to prevent Google showing documents directly in the SERPs? I've many useful docs in my website and we know that Google has got smart enough already - that if the document serves visitor's

@Steve110

Posted in: #GoogleIndex #Noindex

I've many useful docs in my website and we know that Google has got smart enough already - that if the document serves visitor's purpose then it directly lists it in the SERP without listing the page from which it was linked.

That'd cause loss of revenue to us in case visitor does not visit our web pages.

Is there any way to prevent Google listing the documents directly in the SERP?

I see that there is X-Robots-Tag:noindex to prevent Google from indexing documents. But I do want Google to index the documents just to know their importance and also increase relevancy due to them.

Similar question: How to prevent a PDF file from being indexed by search engines?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve110

1 Comments

Sorted by latest first Latest Oldest Best

 

@Bryan171

To prevent Google to index your documents but let bots crawl your documents (for SEO purposes), you can put these following lines in your .htaccess (if you use Apache as a web server). It will give weight to tell to Google to index your webpages and not your documents.

<Files ~ ".pdf$">
Header set X-Robots-Tag "noindex"
</Files>


With these lines, you apply filter on all .pdf files for your entire website by using X-Robots-Tag in HTTP header. This is an article from Google to understand how it works.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme