Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's suppose exist a site with the following directories (subdomain)

   |- ….
   |- ...

My question is;

  1. How can I display properly locally the site of the sub1 subdomain (http://domain/sub1)
  2. How can I get just the files and directory which are childs of sub1 (sub1sub1 and sub1sub1sub1 for example)

I tried the following options (for wget) but it retrieves also the files and directories which are in sub2, sub3 etc..

wget -E -H -k -K -r http://domain/sub1/index.php
share|improve this question
[Another discussion][1] addresses aspects of this in some detail. [1]:… – Ray Woodcock Apr 29 '14 at 9:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.