Skip to content
Short script to generate a sitemap from sh404SEF exported SEF URLs on Linux
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

sh404SEF Sitemap Generator

Short script to generate a sitemap from sh404SEF exported URLs on Linux


To execute the script, you have to download the .sh file and give it execution permissions:

chmod +x

Then you just have to use the name of the .txt file exported from sh404SEF as a parameter:

./ filename.txt

The script will let you enter the appropriate domain (e.g.,,, etc.) and choose to use HTTPS or HTTP for the sitemap. This script removes all duplicate entries from the sh404SEF file (if there are indeed duplicates) and formats the generated XML file according to the protocol available on

Don't enter the domain with http:// or https:// included.


You can use subdomains as www and you have to execute the script on the folder where the .txt file exported from sh404SEF is located (or enter the complete path as a parameter).

Additional info

If you don't know how to get the file with the all internal URLs, you just need to go to the SEF URLs manager and use the button EXPORT then click NEXT to generate the .txt file. Save it to your computer and use the script as explained above.

All exported files have the same pattern year-month-day_urls_export.txt.

You can’t perform that action at this time.