Category Archives: General

Yoast sitemap_index.xml 404 not found error


Yoast sitemap_index.xml 404 not found error : This Error occurs basically when you have not added rewrite rules to the .htccess file which exists at the root of your wordpress site. You can fix this issue quickly by adding the rewrite rules.


Fix for Yoast sitemap 404 not found error

Add the following rules in .htaccess file –

For Apache

If you are using apache add the following lines in .htaccess file.

For NGINX

If you are using NGNIX add the following lines in NGNIX config.

Htaccess redirect to new domain

Htaccess redirect to new domain

This is best way to redirect from one doamain to new domain page wise(ie. it will redirect the page from old domain to new domain on the same page.). This is the Seo friendly way also.

Add the following code to the .htaccess file.