• Resolved yoncain

    (@yoncain)


    Hi,

    Is it possible to change the name of the sitemap_index.xml file to something like: wordpress_sitemap_index.xml?

    Thanks,
    Yon

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    It isn’t possible to change the name, as by default it outputs as /sitemap_index.xml. Can we ask why you would like to change the name of the file?

    Thread Starter yoncain

    (@yoncain)

    Hi Michael,

    Thanks for your reply.

    We are hosting our wordpress site on another server from our main application and using a reverse proxy to rewrite the URL structure to a sub-folder structure of the main site.

    The XML sitemap name may cause conflicts with our other sitemaps.

    However, a better solution for us rather than changing the name of the yoast XML file, would be if we could change the base URL location of the yoast sitemap index file and all of the sitemaps that it references. Would it be possible to change the base URL location of the xml sitemaps from:

    /sitemap_index.xml to /news/sitemap_index.xml
    /post-sitemap.xml to /news/post-sitemap.xml

    Is there code I can put in to do this?

    Thanks,
    Yon

    MariusG

    (@marius_codeinwp)

    Hi Yon,

    Thank you for getting back to us.

    You could use this filter to change the base URL for the sitemaps.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Setting to resolved.

    I need to rename sitemap_index.xml to blogsitemap.xml. Our client is blocking direct access to sitemap*.xml. You noted this isn’t possible and asked why one might want to do that. That’s why. What can I do?

    +1

    Please add the feature where users can specify a custom sitemap file name.

    • This reply was modified 5 years, 11 months ago by Bloggd.

    We need this feature in my organization, kindly add

    I would like to change sitemaps URL from root to /news folder on my server. I checked your link provided above, but I don’t know how to use that filter and hooks correctly. Please can you provide detaled instructions/example with info what file/s edit and how exactly?

    Thank you very much!

    • This reply was modified 5 years, 7 months ago by martin9870.

    This would be an awesome feature, because now competitors can see exactly when you made changes to certain articles. ??

    +1

    To custom sitemap name you can do step by step:
    1. Go to inc\sitemaps in plugin folder
    2. Edit file class-sitemaps-router.php
    3. On row 32 you can change any name.
    Done!

    I tried what myfrogtee suggested, but the URL doesn’t change.

    hi
    how can I remove this info from the sitemap? Screenshot

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Change name of sitemap_index.xml file’ is closed to new replies.