How to change the XML video sitemap URL
You can change the XML video sitemap URL by following the steps described below.
Do you have a different question regarding the Video SEO plugin? Check our Video SEO FAQ.
- Disable the sitemap feature.
Disable all sitemaps by following the steps in this article on XML sitemaps.
- Add the filter in your theme’s functions.php file.
- Enable the sitemap feature.
Enable all sitemaps by following the steps in this article.
This will create two sitemaps:
- an XML sitemap for the video custom post type (www.example.com/video-sitemap.xml)
- an XML sitemap specifically formatted to meet video sitemap guidelines (www.example.com/vsvideo-sitemap.xml)
The filter
You should add the following filter to your theme’s functions.php file. You can replace vsvideo
with your preferred choice.
define ('YOAST_VIDEO_SITEMAP_BASENAME', 'vsvideo');
Did this article answer your question?
Thanks for your feedback!