In order to get the list of links from your WordPress websites – which you might need for example to get all links from a website to share it, or create a list or redirection pages after a WordPress change site URL, install the plugin All In One SEO Pack.
See WordPress howto install a plugin if your aren’t sure how to proceed.
From the administration interface, go to the All in One SEO > XML Sitemap menu to get all links, and there click on Update Sitemap >> and, after all is done, open to view your sitemap link.
All in One SEO Sitemap XML display
How to create XML sitemap
You can here see your sitemap, nicely rendered by the browser.
A sitemap is list of all links on your website, therefore select all with CTRL-A, and copy it to the clipboard with CTRL-C.
All in One SEO Sitemap XML selection
WordPress link list
Paste it in an Excel sheet for example. As you can see, the list of links will need a little work to be usable
XML sitemap SEO pasted in Excel
Select the first 7 lines of the wp links, and delete them :
Deletion of extra lines
You can then add a filter to play with your data which contains all internal page links, as provided by the WordPress sitemap XML plugin.
Adding filter
… and filter as you please !
This list can now be used to proceed with XML sitemap SEO, to improve SEO sitelinks, or to redirect WordPress site to another URL, by making a proper redirection for all URLs listed.
In that case, all WordPress internal links should be redirected to the new one, to make sure no SEO is lost. In some cases, it might be necessary to do it URL by URL.