Not really a WordPress question, just a general website question. I have a site built with PHP, but which I need to transform into static HTML (changing technology). What tool can I use to spider a whole site and generate static HTML pages?
Dbranes answers:
If you have access to a LinuX command line, then you can try <em>wget</em>:
Here is one [[LINK href="http://superuser.com/questions/129085/make-wget-download-page-resources-on-a-different-domain?lq=1"]]example[[/LINK]]:
wget --recursive --level=inf --page-requisites --convert-links --html-extension -rH -Dexample.com http://example.com
I've tested this on a small site and it looks like I got the whole site tree with all images.
Lawrence Krubner comments:
Wow. I had no idea that wget had a recursive option. Those linux utilities pack a lot of power. I'll try that.
Dbranes comments:
yes, the <strong>*niX</strong> one-liners can be really powerful ;-)
ps: these <em>wget</em> manual links might be helpful:
[[LINK href="http://www.gnu.org/software/wget/manual/wget.html#Recursive-Download"]]http://www.gnu.org/software/wget/manual/wget.html#Recursive-Download[[/LINK]]
[[LINK href="http://www.gnu.org/software/wget/manual/wget.html#Following-Links"]]http://www.gnu.org/software/wget/manual/wget.html#Following-Links[[/LINK]]
Sabby Sam answers:
Hi,
I don't have idea but I would do this to hide the site is made in php,
Add this to your .htaccess:
RewriteRule ^([^\.]+)$ $1.html [NC,L]
Francisco Javier Carazo Gil answers:
You can use a plugin, for me is the best option: http://wordpress.org/plugins/static-html-output-plugin/