• Hello, the plugin ‘nLingual’ are breaking function ‘All in One SEO plugin’, namely the sitemap module.
    The main page of the site opens, when referring to the sitemap.xml.
    If you deactivate the plugin ‘nLingual’, then everything works fine, and the sitemap opens.

    Tell me how fix this?
    ===========================
    WP Version 5.6
    All in One SEO Version 4.0.11
    nLingual Version 2.9.0.1

    • This topic was modified 3 years, 3 months ago by martein.
Viewing 1 replies (of 1 total)
  • Plugin Author Doug Wollison

    (@dougwollison)

    I have a pending update that includes handling for sitemap requests but apparently it doesn’t work with AIOSEO due to how it flags sitemap requests. I’m adding handling for that plugin, aiming to publish the update in the comming weeks.

    In the mean time, you can add this code to your theme’s functions.php file, should prevent the redirect.

    add_filter( 'nlingual_maybe_redirect_language', function( $url ) {
    	if ( get_query_var( 'aiosp_sitemap_path' ) ) {
    		return false;
    	}
    
    	return $url;
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Not compatible with AIOSEO 4 plugin – Sitemap module’ is closed to new replies.