• Would love to use this plugin, but as it stands currently, there are no options to allow sitemaps to exist.

    I have a site with events and pages that gets updated weekly, and having a sitemap is pretty crucial for crawlers to get updated event information. I was using this plugin, but it wouldn’t let me create a sitemap XML file through All in One SEO, kept redirecting to the homepage.

    I understand that the redirection is one of the features, but being able to toggle to allow sitemaps should probably be an eventual feature.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Hey @midwestdev,

    Thanks for reaching out on this issue. I think this may be specific to All in One SEO, as Disable Blog has logic to prevent redirects on sitemaps (the ‘post’ type is removed from core sitemaps another way).

    To confirm: you are having this issue with the sitemap on the front-end of the site (and not using the AIOSEO admin pages)?

    I’ll do some debugging/testing with All in One SEO to see if I can replicate and fix the issue.

    In the meantime, if you’re comfortable using a filter to modify Disable Blog, the redirect functionality has a few (see here for more context).

    The main filter to use would be dwpb_redirect_front_end, which default returns true to enable the front-end redirects. If you know the function(s) needed to check for the AIOSEO sitemap condition, you could do something like:

    
    add_filter( 'dwpb_redirect_front_end', 'dwpb_example_redirect_front_end' );
    function dwpb_example_redirect_front_end( $bool ) {
    
        if ( true ) { // replace with conditional function of your own.
            return false;
        }
    
        return $bool;
    }
    

    Replace that if ( true ) { line with your own if statement that returns true for the AIOSEO sitemap.

    I’ll follow up once I have time to dig further into the plugin and, if appropriate, any updates to Disable Blog. Reach out if you need anything in the meantime.

    Thread Starter midwestdev

    (@midwestdev)

    @joshuadnelson – Appreciate the quick feedback! It absolutely might only be All In One SEO, I guess I assumed that it would throw an issue for anyone trying to get to the sitemap located at domain.com/sitemap.xml, but perhaps not.

    While I’m perfectly comfortable using filters, my client wanted an immediate solution, which was to unfortunately disable your plugin (for the time being). Once you dive in and test it out, I’ll check back in the next few updates to see if you found a workaround so I can re-enable it!

    Thanks for your hard work!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preventing 3rd Party Sitemaps’ is closed to new replies.