Google XML Sitemaps Version 4 and Later

WordPress plugin「Google XML Sitemaps」is a sitemap.xml from traditional static file generated by version 4 or later that has been changed to dynamic file generation.

Along with this, if you are using Amimoto AMI, / etc / nginx / expires you will be required to modify the file.
This work will require root privileges.
※ For root authority, refer to “WordPress Multisite in Amimoto.”

/ etc / nginx / expires file is as follows.

if ($ request_filename ~ * \ (jpe g |..? gif | png | swf | wmv | flv | ico) $) {
    access_log off;
    expires 365d;
}
if ($ request_filename ~ * \ (txt |.. css | js) $) {
    access_log off;
    expires 7d;
}
if ($ request_filename ~ * \ (xml |.. gz) $) {
    access_log off;
    expires 1d;
}
#if (-f $ request_filename) {
# Access_log off;
# Expires 30d;
#}

Please comment from line 9 to 12. This is as follows:

if ($ request_filename ~ * \ (jpe g |..? gif | png | swf | wmv | flv | ico) $) {
    access_log off;
    expires 365d;
}
if ($ request_filename ~ * \ (txt |.. css | js) $) {
    access_log off;
    expires 7d;
}
#if ($ request_filename ~ * \ (xml |.. gz) $) {
# Access_log off;
# Expires 1d;
#}
#if (-f $ request_filename) {
# Access_log off;
# Expires 30d;
#}

Then, in order to reflect the setting  # service nginx restart  , please restart Nginx.

※ For customers using Amimoto Managed Hosting Plan, please contact support for assistance to enable “Google XML Sitemaps” version 4 or later.