SeoMix Disable core sitemaps

Опис

WordPress 5.5 add core XML sitemap functionnality, but there is no user interface to disable it.

Disable Core Sitemaps simply deactivate all WordPress XML sitemaps and redirect them to your home URL, preventing 404 page generation for Google and other Search Engines.

More information here about it : Core XML Sitemap Guide (French)

Встановлення

This section describes how to install the plugin and get it working.

  1. Upload the plugin files to the /wp-content/plugins/seomix-disable-core-sitemaps directory, or install the plugin through the WordPress plugins screen directly.
  2. Just activate the plugin through the ‘Plugins’ screen in WordPress.
  3. You’re done

Часті питання

Installation

Just activate the plugin, and you’re done

Does it redirect old sitemap URL ?

Yes, it does redirect all sitemap URL to homepage URL (301 redirect). It prevents bad 404 for Google and other search engines.

Can I redirect to another URL ?

Yes, you can use a filter for that :

apply_filters( 'seomix_core_sitemaps_redirect_target', $home, $current_url );

$home is the default redirect URL
$current_url is the current 404 sitemap URL being processed
Exemple usage :

add_filter( 'seomix_core_sitemaps_redirect_target', 'seomix_function' );
function seomix_function( $home, $current_url ) {
    return "https://shiny-new-url.fr";
}

Відгуки

Для цього плагіна немає відгуків.

Учасники та розробники

“SeoMix Disable core sitemaps” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:

Учасники

“SeoMix Disable core sitemaps” було перекладено на 5 локалізацій. Дякуємо перекладачам за їх роботу.

Перекладіть “SeoMix Disable core sitemaps” на вашу мову.

Цікавитесь розробкою?

Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.