• I had a static html website, to which I have just linked a new blog. The sitemap that’s generated after installing this plugin doesn’t list the static site, which is not surprising. Will this affect my SEO? Is there a way I can add the URL of the static side to the sitemap?

    • This topic was modified 1 month, 1 week ago by schweta.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    Search engines use the sitemap to index the site quickly, but they will naturally follow all links on your site to find new pages as well. The sitemap is a bit of a dated tool and isn’t necessary for search engines to find all URLs on your site.

    Still, you can add extra URLs to the sitemap using a filter if you’d like. Here’s an example:

    add_filter(
    	'the_seo_framework_sitemap_additional_urls',
    	function ( $urls ) {
    		return array_merge(
    			$urls,
    			[
    				'https://example.com/page-1/',
    				'https://example.com/page-2/',
    				'https://example.com/page-3/',
    			],
    		);
    	},
    );

    (Where do I place filters?)

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.