SmartCrawl sitemap shows 404 while adding nginx rules but works fine without those.

I try to add the rules for Hummingbird and Smush pro and when I add those, /sitemap.xml on the site shows 404 error or a blank page sometimes.
## WP Defender - Prevent information disclosure ### Turn off directory indexing
autoindex off;

# Deny access to htaccess and other hidden files
location ~ /\. {
deny all;
}

# Deny access to wp-config.php file
location = /wp-config.php {
deny all;
}

# Deny access to revealing or potentially dangerous files in the /wp-content/ directory (including sub-folders)
location ~* ^/wp-content/.*\.(txt|md|exe|sh|bak|inc|pot|po|mo|log|sql)$ {
deny all;
}
## WP Defender - End ##

# Enable Gzip compression
gzip on;

# Compression level (1-9)
gzip_comp_level 5;

# Don't compress anything under 256 bytes
gzip_min_length 256;

# Compress output of these MIME-types
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-font-opentype
application/x-font-truetype
application/x-javascript
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/eot
font/opentype
font/otf
image/svg+xml
image/x-icon
image/vnd.microsoft.icon
text/css
text/plain
text/javascript
text/x-component;

# Disable gzip for bad browsers
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

location ~* \.(txt|xml|js)$ {
expires 9d;
}

location ~* \.(css)$ {
expires 9d;
}

location ~* \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$ {
expires 9d;
}

location ~* \.(jpg|jpeg|png|gif|swf|webp)$ {
expires 9d;
}

  • Kasia Swiderska
    • Support nomad

    Hello CHA,

    I'm sorry to hear that this is not working correctly on your site.

    I have escalated this issue to our Second Line Support Developers (our coding experts) and they will be checking your site and those config rules to see what can be done to avoid this sitemap problem.

    We will keep you posted.

    Kasia

  • CHA
    • New Recruit

    Hello Kasia,

    While the SLSD check the website, can you provide me a workaround to temporally fix the issue ? This is the website of a client, and the SEO of his website is getting affected really bad.

    Thanks

  • CHA
    • New Recruit

    Hello,

    I am posting a new message in the thread because I have the same issue with another website.
    In fact, I have this problem on every single website that I make…
    I am fed up losing time (hours) and money for every website trying to fix this error.
    Can you please tell me if a an imminent release of a fix is planned ?

    Regards

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.