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:
- Log in to your hosting cPanel
- Open File Manager
- Go to
public_html/ - Upload your sitemap file (example:
custom-sitemap.xml) - Ensure file permissions are correct
- 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:
- Install FTP software (FileZilla)
- Connect to your hosting server
- Navigate to
/public_html/ - Upload your sitemap XML file
- Verify sitemap URL in browser
Method 3: Upload Sitemap Using WordPress Media Library (Not Recommended)
Steps:
- Go to Media → Add New
- Upload sitemap.xml file
- 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:
- Open Google Search Console
- Select your property
- Go to Sitemaps
- Enter sitemap URL (example:
custom-sitemap.xml) - 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