Welcome Guest, Not a member yet? Register   Sign In
Remove PDFs From Google Search
#1

Hello,

I would be very grateful if someone can advise me on how to correctly apply the 'noindex' to all PDF files within my CodeIgniter web site.
I have read that this can normally be achieved by use of the 'Filesmatch' tag within the .htaccess file as illustrated below, but I am not sure if the code snippet is in the correct format for CodeIgniter.
Many thanks in advance.

Code:
<FilesMatch "\.pdf$">
header set x-robots-tag: noindex
</FilesMatch>

Can I simply enter the above code within the root .htaccess file or do I need to apply a different method?
Many thanks in advance.


 

<
Reply


Messages In This Thread
Remove PDFs From Google Search - by Mark H - 10-27-2022, 06:02 AM
RE: Remove PDFs From Google Search - by superior - 10-27-2022, 07:11 AM
RE: Remove PDFs From Google Search - by Mark H - 10-28-2022, 03:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB