RavanH on "[Plugin: XML Sitemap & Google News feeds] Sitemap return to homepage"

ساخت وبلاگ

Hi,
I installed the plugin, I create the sitemap index but when I click on the single sitemap it sends me back to the home page (and search console say that not is a valid html sitemap).

Why is this happening? The sitemap is this: http://www.nuvoluzione.com/sitemap.xml

Thx!

https://wordpress.org/plugins/xml-sitemap-feed/

Hi, normally this can be fixed by refreshing the Permalink structure. Go to Settings > Permalinks and save the settings. No need to change anything unless they are unusual (custom) settings there. In that case, please let me know what your Permalink settings are.

I did it but it does not work the same ...

http://www.nuvoluzione.com/?feed=sitemap does not work either. Are you sure the plugin is activated at all?

gianpy81
Member
Posted 13 hours ago #

Hi,

I riactivated plugin and I refreshing permalink. I have a problem only on sitemap posts: they retus in home page, other (sitemap-posttype-page.xml, sitemap-taxonomy-category.xml ecc) that's all right.

You can see here: http://www.nuvoluzione.com/sitemap.xml

I see... if you deactivate the "Split by: Year" option on Settings > Reading (click the link Settings after the "Include post types: Posts") then your sitemap index will show this one http://www.nuvoluzione.com/sitemap-posttype-post.xml which works without being redirected. I think it's the year in that URL which causes an Nginx rule (or are you using a redirect plugin?) to redirect to the home page.

For example, if I try to open up a normal year or month archive page like http://www.nuvoluzione.com/2016/06/ I would expect to see a list of posts published in that month but instead I'm redirected to the home page too...

You'll need to find out what causes this redirect, or switch to "Split by: none" as suggested above. But be aware that this makes the http://www.nuvoluzione.com/sitemap-posttype-post.xml a slow one (Google spider does not appreciate that very much) and at some point in the future, if you've published many more posts, you'll run into a PHP memory problem, causing a blank sitemap...

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 239 تاريخ : پنجشنبه 17 تير 1395 ساعت: 5:08