Page 1 of 1

Error with Google XML Sitemaps

PostPosted:19 Jul 2018 00:45
by denbei
I found error when accessing sitemap.xml
I use Wordpress with Google XML Sitemaps, WP-Rocket
Image

Re: Error with Google XML Sitemaps

PostPosted:19 Jul 2018 07:27
by nguyenoanh
Hello !
Do you use config vhost for wp-rocket plugin ?

Re: Error with Google XML Sitemaps

PostPosted:19 Jul 2018 13:11
by denbei
Yess, i'm using config vhost wp-rocket.
Solved, by changing wp theme.

Re: Error with Google XML Sitemaps

PostPosted:19 Jul 2018 13:35
by nguyenoanh
Okay :)

Re: Error with Google XML Sitemaps

PostPosted:20 Jul 2018 10:48
by denbei
Hello,
If i install my theme, still cannot accessing my sitemap.xml how to fix sitemap error?
http://prntscr.com/k8p5rg

Re: Error with Google XML Sitemaps

PostPosted:20 Jul 2018 10:55
by nguyenoanh
@denbei
Sorry, it is about php code.
I do not know how to fix so that i can not help you about this.

Re: Error with Google XML Sitemaps

PostPosted:20 Jul 2018 11:04
by caotu
You can using plugin https://vi.wordpress.org/plugins/google ... generator/ or Yoast SEO.

Plz remove and re-install.

Re: Error with Google XML Sitemaps

PostPosted:20 Jul 2018 11:41
by denbei
I've tried too, Google XML Sitemap and Yoast Sitemap.
Has never been successful.
I've read to adding rewrites.conf with this code:
Code: Select all
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
Any suggest if implement with this code?

Re: Error with Google XML Sitemaps

PostPosted:22 Jul 2018 20:01
by yadi
denbei wrote:
20 Jul 2018 11:41
I've tried too, Google XML Sitemap and Yoast Sitemap.
Has never been successful.
I've read to adding rewrites.conf with this code:
Code: Select all
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
Any suggest if implement with this code?
Actually for sitemap.xml no need rewrite rules. After you install google sitemap or yoast theb you can access directly.

Please note if you still got same error, maybe that problem on cache and history. You can try access using incognito on browser.

Re: Error with Google XML Sitemaps

PostPosted:10 Aug 2018 10:51
by ikankoi
as an added note, you can use wordpress rss/feed as sitemap if the xml generation still failing.