Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi rajneeshrana88,

    I have this working with that last rule you posted (which I also posted about in that other thread):

    location / {
    try_files $uri $uri/ /index.php?$args;
    }

    I’m using nginx/1.4.6 on Ubuntu 14.04.2 LTS on my test site. Also, go to Settings -> Permalinks and make sure your permalink structure is working, and not set to Default. If you can’t get this working at all on nginx, the alternative would be to uncheck “Dynamically Generate Sitemap” and click “Update Sitemap”, which will create static sitemap files on the filesystem instead.

    Thread Starter rajneeshrana88

    (@rajneeshrana88)

    Hi,
    yes i have this by default in nginx.
    Permalinks structure is working fine.
    static sitemap works but we need dynamic sitemap for faster update on search engines.

    Hi rajneeshrana88,

    If WordPress is handling your permalinks, then this should work; you aren’t the first person to have problems with nginx here, but unfortunately I can’t reproduce the issue on my nginx test site. You can verify whether or not the permalink structure is set up correctly by using a plugin such as Rewrite Rules Inspector; if it is, then the issue is on the nginx server configuration side. Make sure there isn’t a physical sitemap.xml file and that your permalink structure is current; also as you noted, /index.php?aiosp_sitemap_path=root should also display the main sitemap.

    Hi,

    I figured out, what caused the problem on my system:

    location ~* \.(?:manifest|appcache|html?|xml|json)$ {
      expires -1;
    }

    When this is set I get a 404.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘dynamic sitemap option not working with nginx’ is closed to new replies.