Skip to main content

servers

How-to: Create a local copy of a dynamic site

Recently, there was a need at work to produce a static copy of a dynamic site, and have most everything still work. After a few minutes of research, I remembered that wget would take care of this just fine.

So I created a new site on one of our LAMP servers, and executed the following command in it's public_html directory:
wget --mirror -t 2 -w 2 -p -E --convert-links -T 5 -P . http://domainname/page
Worked like a charm :)

Syndicate content