Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have a website - http://myradio1.localhost and the directory is currently empty.

The virtual host works fine, no issues there.

This is my command I'm using to download the site via wget:

wget --user-agent="Googlebot/2.1 (+" -r --convert-links -p -P "C:\www\public_html\myradio1" ""

It downloads the site perfectly, except for one thing, it always renders it like this when downloaded:


which is not what I want to happen. I want it just to download to the folder, so it can run as http://myradio1.localhost, without me having to move the files out of the domain folder after download has completed.

How can I get wget to download all files, but without creating the domain as a folder, basically?

All help is much appreciated.

share|improve this question

You need the parameter --no-host-directories or -nH, e.g.

wget --user-agent="Googlebot/2.1 (+" --no-host-directories -r --convert-links -p -P "C:\www\public_html\myradio1" ""

From the manual:

Disable generation of host-prefixed directories. By default, invoking Wget with -r will create a structure of directories beginning with This option disables such behavior.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.