-
-
Notifications
You must be signed in to change notification settings - Fork 178
Conversation
some sitemap plugin like yoast seo generate url for sitemap like : http://domain.com/post-sitemap1.xml http://domain.com/page-sitemap.xml http://domain.com/post_tag-sitemap4.xml ... and prev regex cannot handel this type of url and cause of error in google webmaster the new regex fix this problem
are you actually experiencing an issue? i tried to reproduce this problem and i can't. in fact, i can completely remove the entire check at the top of we filter |
even when i add |
hi |
thanks. both the regex in this PR and the regex you just provided don't work to fix the problem, which i was able to reproduce after adding tags and viewing the tags sitemap |
try replacing the regex with (from @Foxaii via https://github.com/roots/soil/issues/16#issuecomment-52793074) |
replace but nothing happen and tags and category sitemap convert relative function disable_soil_relative_urls_sitemap() {
if (isset($_GET['sitemap'])) {
remove_theme_support('soil-relative-urls'); // Disable relative URLs from Soil
}
}
add_filter('after_setup_theme', __NAMESPACE__ . '\\disable_soil_relative_urls_sitemap'); are you sure $_GET['sitemap'] set in sitemap request? |
main reason of this problem is number and if simplify my prev regex get better thing be careful in test process sitemap cache and when php code change maybe see prev generated xml |
i went into wordpress seo and completely disabled the caching in the sitemaps. i made sure that it was disabled by removing also confirmed that with |
the sitemap problem stile remain #156 |
some sitemap plugin like yoast seo generate url for sitemap like :
http://domain.com/post-sitemap1.xml
http://domain.com/page-sitemap.xml
http://domain.com/post_tag-sitemap4.xml
...
and prev regex cannot handel this type of url and cause of error in google webmaster
the new regex fix this problem