How to generate a list of all valid URLs served by my site
There exists a number of website checking tools (aka. robots or spiders) that will crawl a given website and generate a number of reports, including a report of all URLs found on that site by recursively crawling the site from some starting point (crawl foundation page).

Below are links to three such tools that I've used for this purpose:


WebCheck: http://arthurdejong.org/webcheck/
Link Sleuth: http://home.snafu.de/tilman/xenulink.html
DRKSpider: http://www.drk.com.ar/spider.php


Note that these will only report URLs that are reachable from the crawl foundation page. If your site consists of sub-sites that are not reachable from each other, you need to set up more than one crawl foundation.