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

README.md

sh404SEF Sitemap Generator

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

Running

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

chmod +x sh404SEFsitemap.sh

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

./sh404SEFsitemap.sh filename.txt

The script will let you enter the appropriate domain (e.g., domain.com, domain.net, subdomain.domain.com 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 sitemaps.org.

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

Note:

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.