Bug Found and Used Editor To Fix
-
Hi Herbert,
I found a bug.
Our blog is installed on a subfolder:
https://www.twinword.com/blogso after clicking the button “Generate a Complete Image Sitemap”, it shows:
“You can find the file here: https://www.twinword.com/blog/sitemap-images.xml”
However, that is a 404 because it was actually saved to:
https://www.twinword.com/sitemap-images.xmlTo fix it, I just changed the following:
// A bunch of images were written to the sitemap file $url = get_bloginfo('url') .'/sitemap-images.xml';
To:
// A bunch of images were written to the sitemap file // blog url is not where it is saved, it is saved to doc root, so need to edit $url = parse_url(get_bloginfo('url')); $url = $url['scheme'].'://'.$url['host'].'/sitemap-images.xml';
Hope this helps.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug Found and Used Editor To Fix’ is closed to new replies.