HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

What's the settings for SITEMAP.XML on nginx?

hi Guys, my sitemap dont work on nginx , what did i miss?

Comments

  • semplonsemplon Malang New

    Hello, This is my sites nginx config. try this

            location / {
                    try_files $uri @rewrite;
            }
    
            location = /sitemapindex.xml {
                    try_files $uri @rewrite;
            }
    
            location ~* /sitemap-(.*).xml {
                    try_files $uri @rewrite;
            }
    
            location @rewrite {
                    rewrite ^ /index.php?p=$uri&$args last;
            }
    
    
Sign In or Register to comment.