Disable Media Permalink by Hardweb.it

描述

Completely disable the Media Permalink generated by WP.
It’s useful for websites who doesn’t need the attachment’s page, it reduce Cookiebot crawled pages and more over.
It’s easy to use, no options, just activate the plugin and it will work as expected.

安装

  • Install the Plugin and Activate it.
  • No settings required, read the F.A.Q. to know how it work!
  • That’s all! Enjoy.

常见问题

How it works?

When the Plugin is active, it apply a filter to say to your WP to disable all media permalinks.
So every link like this: https://mydomain.com/category/the-post-title/attachment/my-image-slug
come back to: https://mydomain.com/wp-content/uploads/12/01/my-image.jpg

What happen when a previous permalink will open?

Since WP will no longer check these type of guid structure the old permalink will return a 404 page.

Is this plugin SEO compatible?

Obviously if you disable all media permalink, all of those could be deleted by search engines.
Depend on your SEO plugin, it could convert all media permalink to the direct file link (see your SEO plugin settings and check the sitemap.xml to understand what it contain).
If you enable the “Redirect attachment URLs to the attachment itself” function, this will stop to work, since the redirect can’t work without the media permalink.

Do the plugin something with database?

No! The plugin never write anything to your wordpress database, so it is 100% safe to use!

Can I restore all media permalink?

Of course, You can do it with a single click!
* Simply disable or uninstall the plugin
* Your permalink structure and all previous permalink will work again.

评价

2020年1月14日
This plugin is perfect. You have just to install it to solve a big problem. Thank you for giving the possibility to disable the media permalinks created by WordPress just with one click!
2018年10月18日
a great plugin, thank you! it was nos easy to find it!
2018年5月16日
This helps you to remove the media/attachment permalink, so Cookiebot will never crawl every image as single page. For example you have 50 posts with 1 image on each one, then Cookiebot count 50 urls + 50 media urls = 100 pages. Using this plugin can save you for the 50 media attached url, keeping cookiebot working on your blog as free version.
阅读所有5条评价

贡献者及开发者

“Disable Media Permalink by Hardweb.it” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Disable Media Permalink by Hardweb.it”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Disable Media Permalink by Hardweb.it”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • First stable release