• Hi there,

    I’m running SEO Yoast on my website but whenever I click on the XML link I get a 404 error page not found.

    I’ve tried adding the following to my .htaccess file

    # WordPress SEO - XML Sitemap Rewrite Fix
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    </IfModule>
    # END WordPress SEO - XML Sitemap Rewrite Fix

    But now I just get a page not found.

    Any suggestions?

    Here is the link:-

    https://176.67.174.179/ukcctvinstallations.co.uk/sitemap_index.xml

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter naysilva

    (@naysilva)

    Oh just to add I changed the following line:

    RewriteRule ^sitemap_index\.xml$ ?sitemap=1 [L]

    Removed the index.php – but now the page loads but doesn’t display it how it normally does, any ideas?

    Thread Starter naysilva

    (@naysilva)

    Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SEO Yoast [xml] 404’ is closed to new replies.