• Resolved atescem

    (@atescem)


    Hello,

    If my permalink is plain, sitemap can works. However, I choice postname, the sitemap is 404. I want to use my url postname. How can I solve?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    How are you trying to change the name of the sitemap? That is deprecated functionality that we no longer actively support.

    Thread Starter atescem

    (@atescem)

    I do not try to change name of the sitemap. Sitemap works for permalink is plain. Otherwise do not work. How can I solve?

    Plugin Author arnaudbroes

    (@arnaudbroes)

    @atescem I’m not sure what you mean with plain permalink. Can you give me some more details about that?

    Thread Starter atescem

    (@atescem)

    question is simple

    https://artesis.com/sitemap.xml

    My site map is 404. I cannot send Google. Why?

    Plugin Author arnaudbroes

    (@arnaudbroes)

    @atescem I see that your server uses NGINX, so you’ll need to add these rewrite rules to your configuration – https://aioseo.com/docs/xml-sitemap-rewrite-rules-for-nginx/

    Thread Starter atescem

    (@atescem)

    No. We do not use NGINX.

    Can you send for this code for APACHE? I add ht access.

    rewrite ^/video-sitemap.xml$ /index.php?aiosp_video_sitemap_path=root last;
    rewrite ^/video-sitemap.xml.gz$ /index.php?aiosp_video_sitemap_path=root last;
    rewrite ^/(.+)-video-sitemap.xml$ /index.php?aiosp_video_sitemap_path=$1 last;
    rewrite ^/(.+)-video-sitemap.xml.gz$ /index.php?aiosp_video_sitemap_path=$1 last;
    rewrite ^/(.+)-video-sitemap(\d+).xml$ /index.php?aiosp_video_sitemap_path=$1&aiosp_sitemap_page=$2 last;
    rewrite ^/(.+)-video-sitemap(\d+).xml.gz$ /index.php?aiosp_video_sitemap_path=$1&aiosp_sitemap_page=$2 last;
    
    rewrite ^/sitemap.xml$ /index.php?aiosp_sitemap_path=root last;
    rewrite ^/sitemap.xml.gz$ /index.php?aiosp_sitemap_path=root last;
    rewrite ^/(.+)-sitemap.xml$ /index.php?aiosp_sitemap_path=$1 last;
    rewrite ^/(.+)-sitemap.xml.gz$ /index.php?aiosp_sitemap_path=$1 last;
    rewrite ^/(.+)-sitemap(\d+).xml$ /index.php?aiosp_sitemap_path=$1&aiosp_sitemap_page=$2 last;
    rewrite ^/(.+)-sitemap(\d+).xml.gz$ /index.php?aiosp_sitemap_path=$1&aiosp_sitemap_page=$2 last;
    
    rewrite ^/sitemap.rss$ /index.php?aiosp_sitemap_path=rss last;
    rewrite ^/sitemap.latest.rss$ /index.php?aiosp_sitemap_path=rss_latest last;
    Plugin Author arnaudbroes

    (@arnaudbroes)

    @atescem for Apache you don’t need to add rewrite rules; they’re managed inside WordPress. Please contact us here and our support team will take a look – https://aioseo.com/contact/. Click the button “Complete this Form” and reference the URL of this support thread.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘SiteMap 404’ is closed to new replies.