: 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
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?
More posts by @Steve110
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.