The website is built in wordpress.
I do not have than much experience, so I need your help. Once I entered at “Search Console” at “Crawl Errors” tab I saw that all “404 errors” are in “wp-content/uploads” and most of them are .pdf
I noticed than it adds text after the suffix of .pdf.
1st example:
At “Crawl error” it appears “Error 404” on this link :
https://example.com/wp-content/uploads/2016/10/salon-du-livre-octobre-2016_2-2.pdf;salon-livre-octobre-2016_2-2
When I try to get in, it says “File not found”. If I delete the suffix ;salon-livre-octobre-2016_2-2
from the link then I have access to .pdf
. The link will be:
https://example.com/wp-content/uploads/2016/10/salon-du-livre-octobre-2016_2-2.pdf
2nd example:
https://example.com/wp-content/uploads/2017/10/marmara.pdf;
If I delete the ;
symbol suffix then the link works.
I tried to redirect with Yoast.
1st attempt:
Old URL: https://example.com/wp-content/uploads/2016/10/salon-du-livre-octobre-2016_2-2.pdf;salon-livre-octobre-2016_2-2
New URL: https://example.com
2nd attempt:
Old URL: https://example.com/wp-content/uploads/2016/10/salon-du-livre-octobre-2016_2-2.pdf;salon-livre-octobre-2016_2-2
New URL: https://example.com/wp-content/uploads/2016/10/salon-du-livre-octobre-2016_2-2.pdf
Neither of these two worked.
Is there any way to redirect these PDFs?
What can I do with the problem of “Crawl Errors”?
I'm using Attachment File Icons (AF Icons) plug in for pdf by Praveen Rajan And All 404 Redirect to Homepage By Fakhri Alsadi.