• Resolved mindthetrash

    (@mindthetrash)


    Hi there,

    We are trying to get this plugin running on a site that’s in a subdirectory of another site.

    However, when we look up the sitemap we just get a blank screen.

    We are running on a nginx server with the following location block for our subdirectory (if that info helps):

    location /dk/ {
        try_files $uri $uri/ /dk/index.php?$args;
        index index.htm index.php;
        include fastcgi_params;
        fastcgi_intercept_errors on;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_read_timeout 3600;
        fastcgi_send_timeout 3600;
        fastcgi_param HTTPS "on";
        fastcgi_param SERVER_PORT 443;
        fastcgi_pass 127.0.0.1:{{php_fpm_port}};
        fastcgi_param PHP_VALUE "{{php_settings}}";
        
        location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$ {
        add_header Access-Control-Allow-Origin "*";
        expires max;
        access_log off;
      }

    I guess we need some rewrite to get the sitemap showing?

    Looking forward to hearing from you.

Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi @mindthetrash,

    The plugin add rewrite rules to the WordPress’s list of rewrite rules. So it doesn’t interact with nginx/Apache configuration. As long as your WordPress permalinks work, then the sitemap will work.

    If you don’t mind, please share your site URL here so we can take a closer look.

Viewing 1 replies (of 1 total)
  • The topic ‘Sitemap on subdirectory’ is closed to new replies.