I recently came across a theme which creates a sitemap and attempts to add it to the Site Address directory/root, so https://example.com/sitemap.xml
. I believe the way this theme does it makes some bad assumptions about file paths and uses ABSPATH
.
In most cases, this might work without incident. However, I’m actually using Bedrock which means sitemap.xml
ends up in https://example.com/wp/sitemap.xml
with /wp/
added and so visiting the expected URI (https://example.com/sitemap.xml
) results in a 404.
I’d like to correct this via a child theme or by PR but I frankly have no clue where to begin, so I’ve currently just made some symlinks, but something tells me there’s a more thorough approach. One thing I tried was seeing if I could figure out how Yoast adds their sitemaps but that has sent me down a twisty rabbit hole.
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com