Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Shivam Tyagi

    (@shivamtyagi)

    Hi @simonecaramanno,

    Can you please try deactivating all the plugins except AIOSEO, switch to a default theme like “Twenty Twenty” and let me know if the sitemap is still throwing a 404 error?

    Please refer to our documentation here.

    Idem. I need the Apache rewrite rules for my htaccess. I have also 404 errors due to missing AIOSEO rewrite rules.

    I have these rules in htaccess, but the rules for indexed sitemaps are missing

    #
    # All in one SEO sitemap.xml 
    #
    RewriteBase /
    RewriteRule ^sitemap.xml$ /index.php?aiosp_sitemap_path=root [L]
    RewriteRule ^sitemap_(.+)_(\d+).xml$ /index.php?aiosp_sitemap_path=$1&aiosp_sitemap_page=$2 [L]
    RewriteRule ^sitemap_(.+).xml$ /index.php?aiosp_sitemap_path=$1 [L]

    Thanks,

    Didier.

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @swissspaceboy,

    Those rules are complete. Is the rewriting engine enabled? You can ensure it’s enabled by adding the rules like this –

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^sitemap.xml$ /index.php?aiosp_sitemap_path=root [L]
    RewriteRule ^sitemap_(.+)_(\d+).xml$ /index.php?aiosp_sitemap_path=$1&aiosp_sitemap_page=$2 [L]
    RewriteRule ^sitemap_(.+).xml$ /index.php?aiosp_sitemap_path=$1 [L]
    </IfModule>

    Hi Arnaud,

    Nop..not complete.

    1. rss sitemap is missing
    2. indexed sitemaps are missing like “author_sitemap.xml”. You need the rule (.+)_sitemap.xml$ like this.

    I do not use the video and news sitemaps, so they should also be added. The ngix rules are much more complete as you can see below:

    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;

    I will try the beta version from the other ticket thread ??

    Many thanks !

    Didier.

    Thread Starter simonecaramanno

    (@simonecaramanno)

    Hi everybody,
    I noticed that the source of the problem could be related to the WPML plugin.
    When I deactivate the plugin for managing the multilingual the sitemap is shown correctly.
    Have you already had such a problem?

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @simonecaramanno,

    We have a known conflict with WPML that we are working on at the moment. Can you try installing this beta build and see if it works?
    https://we.tl/t-eQQOYof2I8.

    Thread Starter simonecaramanno

    (@simonecaramanno)

    @arnaudbroes thank you very much for the support.
    With the beta version the sitemap is shown.

    Hello,
    I’m facing same issue here, with WPML translate strings active I get the 404 error.
    Could you send/upload the beta build again so I can test it on my side?

    Do you have an ETA on the plugin update?

    Thank you!

    Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @ncovello,

    Here’s that build – https://we.tl/t-Wp4pfnkcav

    We’re aiming for 4.2.0 (not the next update but possibly the one after that one). We’re still investigating an alternative approach where we get rid of rewrite rules entirely, which is why we haven’t made any decisions yet.

    Plugin Support Steve M

    (@wpsmort)

    Hi @ncovello, @simonecaramanno and @swissspaceboy,

    We’ve now released All in One SEO version 4.2.1 which fixes the issue you reported here.

    Thanks for the info on the update. I will gladly test it out soon.

    Didier.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error 404 for sitemap’ is closed to new replies.