# WordPress sitemap returns 404 on InfinityFree hosting

**URL:** <https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659>\
**Category:** Hosting Support\
**Created:** [October 29, 2026, 1:04pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659 "2026-10-29T13:04:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 29, 2026, 1:04pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/1 "2026-10-29T13:04:56Z")

</div>

### Website URL

[https://englishlearnwithsagar.kesug.com/blog/](https://englishlearnwithsagar.kesug.com/blog/)

### Error Message

My WordPress sitemap returns 404 on InfinityFree hosting. Google Search Console reports “Sitemap could not be read” and “General HTTP error.” The WordPress Site Health REST API test also returns 403 Forbidden. Please help me identify the cause.

Website: [https://englishlearnwithsagar.kesug.com/blog/](https://englishlearnwithsagar.kesug.com/blog/)

Sitemap: [https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml](https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml)

### Other Information

I am using WordPress on InfinityFree free hosting. My sitemap URL returns a 404 error, and Google Search Console says “Sitemap could not be read.”

Sitemap URL:  
[https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml](https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml)

WordPress Site Health also reports a 403 Forbidden error for a REST API test. I have already changed Permalinks to “Post name” and saved the settings. My .htaccess file contains the standard WordPress rewrite rules.

Could you please check whether a hosting security rule or server configuration is causing this issue?

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 29, 2026, 1:04pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/2 "2026-10-29T13:04:56Z")

</div>

Welcome to the InfinityFree community forum! Good to have you here.

- Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
- Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
- AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
- Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

---

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 29, 2026, 1:05pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/3 "2026-10-29T13:05:18Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

The 403 on the REST API test is expected on free hosting, and it’s separate from the sitemap problem. Our security system only lets through visitors that can run JavaScript and keep cookies. WordPress can’t pass that check when it tests its own site, so Site Health reports “The REST API encountered an unexpected result”. The article says this doesn’t mean the REST API is broken, and that it works normally for your visitors.

[WordPress Site Health warnings on free hosting](https://forum.infinityfree.com/docs?topic=78910)

The 404 on the sitemap isn’t explained by that. Our browser security article says Google’s crawler is exempt from the check, so a security rule blocking it would not normally give a 404. Google’s live test in Search Console isn’t exempt, so don’t rely on it.

[Browser Security System - Features and Limitations](https://forum.infinityfree.com/docs?topic=49353)

When you open `https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml` in a normal browser window, do you get WordPress’s 404 page, a plain server 404, or the XML? And where is the `.htaccess` file with the WordPress rules: in the `/blog/` folder next to `wp-config.php`, or in `htdocs`? That tells us whether the request reaches WordPress at all.

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 30, 2026, 9:48am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/4 "2026-10-30T09:48:49Z")

</div>

Hello,

I performed another Google Search Console Live URL Test.

The results are:

- Crawl allowed: Yes

- Crawled as: Google Inspection Tool smartphone

- Page fetch: Failed: Server error (5xx)

- Indexing allowed: N/A

My website opens normally in my browser, but Google’s inspection tool receives a 5xx server error.

Could you please check the server logs for my domain and investigate why this request is returning a 5xx error? Could a hosting security rule be affecting Google’s inspection tool?

I have attached the latest Google Search Console screenshot.

Thank you.

 ![image](https://forum-cdn.infinityfree.net/original/3X/6/e/6ec592c439bb0fcf684aa1c657a818a6367dbf1f.png)

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 30, 2026, 10:16am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/5 "2026-10-30T10:16:39Z")

</div>

> [@sagar\_study26](#):
>
> please check the server logs

There is no server log on free hosting

> [@sagar\_study26](#):
>
> ### Website URL
> 
> [https://englishlearnwithsagar.kesug.com/blog/](https://englishlearnwithsagar.kesug.com/blog/)

No issue

 ![image](https://forum-cdn.infinityfree.net/original/3X/9/c/9cfa72d757fe1729ee673f61270796d7e0f8c5f3.png)

This is what I see

 ![image](https://forum-cdn.infinityfree.net/original/3X/8/f/8fe9a9c5d793f7242ed3016b0c7bb6750073f6c9.png)

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 30, 2026, 11:58am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/6 "2026-10-30T11:58:14Z")

</div>

Thank you for checking my website.

I understand that server logs are not available on free hosting. My homepage is working, but the sitemap URL still returns the InfinityFree 404 page:

[https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml](https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml)

I also tested:

[https://englishlearnwithsagar.kesug.com/blog/index.php/wp-sitemap.xml](https://englishlearnwithsagar.kesug.com/blog/index.php/wp-sitemap.xml)

Both return 404. Could you please confirm whether WordPress sitemap URLs are supported on InfinityFree, or suggest another way to make my sitemap accessible to Google Search Console?

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 30, 2026, 12:01pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/7 "2026-10-30T12:01:44Z")

</div>

Thank you. I also tested the sitemap URL and received this XML parsing error:

“error on line 2 at column 6: XML declaration allowed only at the start of the document”

This suggests that some extra output may be appearing before the XML declaration. Could you advise how I can identify whether this is caused by WordPress, a plugin, or the hosting environment?

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [October 30, 2026, 2:52pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/8 "2026-10-30T14:52:12Z")

</div>

It’s probably caused by a poorly coded plugin or a theme, which added an unexpected empty line before the XML definition.

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 30, 2026, 4:02pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/9 "2026-10-30T16:02:52Z")

</div>

Thank you for the explanation. I currently have Elementor, Elementor Pro, and Akismet installed, and I am using the Astra theme. Could you please suggest a safe way to identify which plugin or theme is adding the unexpected output before the XML declaration, without affecting my live website?

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 31, 2026, 12:55pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/10 "2026-10-31T12:55:31Z")

</div>

Thank you. I understand that a plugin or theme may be adding unexpected output before the XML declaration.

Could you please guide me on how to safely identify the responsible plugin or theme on my live WordPress website without affecting visitors or breaking the website?

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 31, 2026, 1:01pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/11 "2026-10-31T13:01:42Z")

</div>

I checked the page source using Ctrl+U on:

[https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml](https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml)

The source contains the InfinityFree 404 page HTML, including:

`<title>404 Not Found - InfinityFree</title>`

It does not appear to contain the WordPress sitemap XML.

Could you please clarify why this URL returns the InfinityFree 404 page instead of reaching WordPress? Is this related to URL rewriting or hosting configuration?

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [October 31, 2026, 1:13pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/12 "2026-10-31T13:13:01Z")

</div>

That URL returns the sitemap for me, just faulty. I’m not sure why are you seeing a 404 page.

There aren’t really any “safe” way to determine the issue if you don’t understand code. The solution is to deactivate everything, switch back to the default theme, and reactivating your plugins one by one to see which one caused the sitemap to break.

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [October 31, 2026, 1:55pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/13 "2026-10-31T13:55:55Z")

</div>

Thank you for the explanation. My website is live and uses Elementor and Elementor Pro. Deactivating all plugins and switching themes may affect the website design. Is there a way to perform this troubleshooting on a temporary copy or staging website instead?

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [October 31, 2026, 2:18pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/14 "2026-10-31T14:18:12Z")

</div>

Not directly connected to your problem but elementor is known to be a resource heavy plugin that often doesn’t playnicely with the free hosting here

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 31, 2026, 2:40pm UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/15 "2026-10-31T14:40:11Z")

</div>

> [@sagar\_study26](#):
>
> Is there a way to perform this troubleshooting on a temporary copy or staging website instead?

Sure, that’s an option. You could copy the website to another location where you can safely tinker with it. You could either do that on a local development server like XAMPP, or by just adding an extra subdomain to your account and copying the files there.

If you are going to test on our hosting, make sure to copy the files, copy the database, AND update the configuration of the debug copy to point to the testing database. Both the staging site and the live site will work fine if you do only half of those steps, until you start making changes on the testing site and breaking your live site in the process.

> [@dan3008](#):
>
> Not directly connected to your problem but elementor is known to be a resource heavy plugin that often doesn’t playnicely with the free hosting here

One more thing to note: Elementor Pro is paid software, so you need to buy a license from Elementor to use it. I have no way to check if you did, but usually when people use free hosting, they’re not paying for their website software either.

So if you got Elementor Pro from “somewhere else”, be aware that that may be an illegally modified copy, and that pirated software often doesn’t just contain license circumvention, but malware too.

And a malicious, pirated WordPress plugin that has a small error in the code could definitely cause unexpected behavior in your website.

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [November 1, 2026, 5:51am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/16 "2026-11-01T05:51:42Z")

</div>

Hello,

I checked the WordPress REST API endpoints. These URLs return JSON successfully:

- `/blog/wp-json/wp/v2/types`

- `/blog/wp-json/wp/v2/posts`

However, `/blog/wp-sitemap.xml` returns an InfinityFree 404 page.

WordPress Site Health also reports a 403 Forbidden response for the REST API edit endpoint and a failed loopback request.

Could you please advise what might be causing the sitemap URL to return a server-level 404?

Thank you.

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [November 1, 2026, 9:42am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/17 "2026-11-01T09:42:17Z")

</div>

Hello,

I’m following up on my sitemap issue. The URL `/blog/wp-sitemap.xml` is still returning an InfinityFree 404 error.

Could someone please take another look when possible?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 1, 2026, 9:46am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/18 "2026-11-01T09:46:06Z")

</div>

You keep saying that it returns a 404 page, but so far nobody has been able to reproduce that. Everyone just sees the (broken) sitemap page. I don’t see a 404 page either.

 ![image](https://forum-cdn.infinityfree.net/original/3X/a/d/adbddcb50c1ab87861fae9a15037a145bd0127b9.png)

If you do still see a 404 error page, then that must be caused by browser cache. Please try checking the URL in Incognito Mode and see if you still see the 404 page there.

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [November 1, 2026, 9:58am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/19 "2026-11-01T09:58:44Z")

</div>

Hello Admin,

I tested both sitemap URLs:

1. [https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml](https://englishlearnwithsagar.kesug.com/blog/wp-sitemap.xml)

2. [https://englishlearnwithsagar.kesug.com/blog/index.php?sitemap=index](https://englishlearnwithsagar.kesug.com/blog/index.php?sitemap=index)

Both URLs now show this XML parsing error:

“XML declaration allowed only at the start of the document” (line 2, column 6).

Could this indicate unexpected output before the XML declaration? Please advise on the next safe troubleshooting step.

Thank you.

---

<div class="post-metadata">

**Author:** ![sagar\_study26](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/sagar_study26/32/68547_2.png) [@sagar\_study26](https://forum.infinityfree.com/u/sagar_study26)\
**Post date:** [November 1, 2026, 10:16am UTC](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659/20 "2026-11-01T10:16:33Z")

</div>

I checked the sitemap URL in Chrome Incognito Mode and also viewed its page source using Ctrl+U.

The source clearly shows the InfinityFree error page:

- Title: `404 Not Found - InfinityFree`

- CSS loaded from `https://errors.infinityfree.net/css/app.css`

- Message: “The page you were looking for could not be found!”

However, I have also received an XML parsing error on the sitemap URL and on `index.php?sitemap=index` at other times.

Could you please help me determine why these sitemap requests are sometimes returning an InfinityFree 404 page instead of reaching WordPress?

[Next page](https://forum.infinityfree.com/t/wordpress-sitemap-returns-404-on-infinityfree-hosting/121659.md?page=2)
