• I am about to TEAR MY HAIR OUT over these STUPID permalinks! I do not NEED a permalink to my images! Now Google has indexed over 200 permalinks as pages!!!!!

    I’ve set attachment pages to NOINDEX and they are still indexing, I hope they go away!

    I want to REMOVE them and NEVER have them EVER AGAIN!

    But now, I do not see any way to stop them from creating or delete them out of existence.

    Please advise, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Once something is indexed, it takes a good long while for Google to pick up on a change in status like an added noindex tag.

    Images inserted into the block editor have no links by default, you must choose to add a link. In the earlier classic editor, IIRC, the previously selected option is used. If you choose to not link, future image insertions will also not be linked by default. Or if attachments were chosen to be linked, future insertions will also link to attachments by default. The point being, if you don’t want attachment links, don’t use them ??

    Google cannot index something if there are no links to be found leading it there. But if already indexed, as I said, it takes a while for it to learn the new status.

    The remaining issue is removing attachment links that are already in place. A few links here and there can be manually removed. If you have several dozen, it becomes an onerous task. You can use a DB search and replace tool that supports regexp arguments to only match attachment links for removal. Such a tool is available at https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    The remaining problem is reliably finding only attachment links for images via regexp and correctly removing just the anchor tags makes for an advanced regexp expression. It’ll help a lot if attachment URLs have some unique element that does not occur elsewhere.

    Thread Starter zizicloud

    (@zizicloud)

    Thanks for the response. Unfortunately, with the latest update to WordPress, there is no option to not create a permalink. The option is to not link it to a URL, but it still makes a permalink. Unless I am not seeing some sort of option? If so, please let me know how to disable the permalink creation.

    I have figured out a solution. The only way to circumvent the problem is to make an image directory in my website files, and use images directly from the directory. Its way cleaner and no permalinks whatsoever.

    I just use my FTP client to upload images to my folder and then attach images via URL in WordPress. Sure, I won’t be able to use media gallery in wordpress, but that’s slow and clunky anyways.

    So far this is the best solution I have come up with and I think it will drastically cut this bloat nonsense.

    If anyone sees any cons to this strategy let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove ATTACHMENT PAGE Permalinks!’ is closed to new replies.