wget recursive limited within subdomain
- by Paul Seangwongree
I want to download the following subdomain with the recursive option using wget:
www.example.com/A/B
So if that URL has links to www.example.com/A/B/C and www.example.com/A/B/D, these two should also be downloaded.
But I don't want anything outside the www.example.com/A/B subdomain to be downloaded. For example, if www.example.com/A/B/C has a link back to www.example.com, the page www.example.com should not be downloaded.
What wget command should I use?