How to Upload a Custom Sitemap in WordPress

How to Upload a Custom Sitemap in WordPress (Easy Step-by-Step Guide)

Uploading a custom sitemap in WordPress is useful when you have a manually created sitemap, a sitemap from another CMS, or a sitemap for special pages like HTML landing pages. This guide explains multiple easy and safe methods, suitable for beginners and SEO professionals.

What is a Custom Sitemap?

A custom sitemap is a sitemap file (usually sitemap.xml) that:

  • Is manually created or generated by a third-party tool
  • Includes specific URLs you want search engines to crawl
  • Works alongside or separately from WordPress SEO plugin sitemaps

Custom sitemaps are commonly used for:

  • HTML landing pages
  • Large websites
  • Migration projects
  • Excluding unnecessary URLs

Before Uploading a Custom Sitemap (Important Checks)

Before you start:

  • Sitemap file format should be .xml
  • URLs inside sitemap must be live and correct
  • Sitemap should follow XML sitemap standards
  • Take a website backup (recommended)

Method 1: Upload Custom Sitemap Using cPanel File Manager (Recommended)

This is the most reliable and commonly used method.

Step-by-Step:

  1. Log in to your hosting cPanel
  2. Open File Manager
  3. Go to public_html/
  4. Upload your sitemap file (example: custom-sitemap.xml)
  5. Ensure file permissions are correct
  6. Open browser and check:
    • yourdomain.com/custom-sitemap.xml

If it opens correctly, the sitemap is uploaded.

Method 2: Upload Custom Sitemap Using FTP

Best for large or multiple sitemap files.

Step-by-Step:

  1. Install FTP software (FileZilla)
  2. Connect to your hosting server
  3. Navigate to /public_html/
  4. Upload your sitemap XML file
  5. Verify sitemap URL in browser

Method 3: Upload Sitemap Using WordPress Media Library (Not Recommended)

Steps:

  1. Go to Media → Add New
  2. Upload sitemap.xml file
  3. Copy file URL

Method 4: Submit Custom Sitemap to Google Search Console (Must Do)

Uploading the sitemap alone is not enough. You must submit it to Google.

Step-by-Step:

  1. Open Google Search Console
  2. Select your property
  3. Go to Sitemaps
  4. Enter sitemap URL (example: custom-sitemap.xml)
  5. Click Submit

Google will now start reading your custom sitemap.

Method 5: Using Custom Sitemap Alongside SEO Plugin Sitemap

If you already use Rank Math, Yoast, or All in One SEO:

  • Keep plugin sitemap enabled
  • Upload custom sitemap separately
  • Submit both sitemaps in Search Console

This helps Google discover all types of URLs.

Method 6: Set Sitemap Index (Advanced SEO Setup)

If you have multiple sitemaps:

  • Create a sitemap index file
  • List all sitemap URLs inside it
  • Upload sitemap index to public_html
  • Submit only sitemap index in Search Console

Common Errors and Fixes

Sitemap not opening

Fix: Check file location and name

“Couldn’t fetch” error in Search Console

Fix: Make sure sitemap URL is publicly accessible

URLs not indexed

Fix: Check robots.txt and noindex tags

Final Thoughts

Uploading a custom sitemap in WordPress is simple and SEO-friendly when done correctly. For most websites, uploading via cPanel or FTP and submitting in Google Search Console is the best approach.

If you want, I can also:

  • Create a custom sitemap XML template
  • Explain difference between plugin and custom sitemaps
  • Write SEO checklist for sitemap optimization
  • Add FAQ schema for this topic
Facebook
Twitter
LinkedIn
Pinterest

Table of Contents