Home>

When the site was recreated with wordpress, the following decrease occurred.

・ A page with only an image is generated and registered in the google index

There seems to be no cause for the theme used, and we also confirmed the plug-in.
"Image_default_link_type" has been set to "none".

・ About deletion of index
Efficient index deletion method because there are too many to delete by hand hitting the corresponding URL
・ How to prevent the generation of an image-only page

Can you tell me how to deal with the above two points?

Thanks for your cooperation.

  • Answer # 1

    It's quick to get attachment.php to return 404

  • Answer # 2

      

    ・ A page with only an image is generated and registered in the google index

    meanshttp://example.com/attachment/image-01/orhttp://example.com/with image/image-01/Is it a media page URL like

    Returning 404 has already been answered ...

    Specifynoindexas shown in Google's help (block search indexing using noindex) as a way to stop indexing in search engines while leaving media pages Is that a normal attack method?

    If you setnoindexin the meta tag in the HTML header part that the media page template (attachment.php) outputs, if it is a decent search engine such as Google, I do n’t think it ’s indexed.

    Specifically, there are template files that output headers such asheader.phpdepending on the theme, but in the header output part,is_attachment ()Add a code to output anoindexmeta tag in the case of a media page by judging the media page with the function.

    Example: