开发者 |
confridin
seokey seomix |
---|---|
更新时间 | 2024年7月18日 17:34 |
捐献地址: | 去捐款 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 6.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/seomix-disable-core-sitemaps
directory, or install the plugin through the WordPress plugins screen directly.Just activate the plugin, and you're done
Yes, it does redirect all sitemap URL to homepage URL (301 redirect). It prevents bad 404 for Google and other search engines.
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"; }