Posted | |
---|---|
Parent Directory | 2007-06-18 20:37 |
Can you host a website made in WordPress on IIS? Or one made in DotNetNuke on Apache? Yes! Now I am NOT about the describe how you can run those application where they weren’t meant to run. I’ll just show you how you can have a CMS spit out plain html files – no need for database or server-side scripting.
Yes, I’m probably crazy – I understand that situations where this would be applicable are only a few. That’s because my “solution” will work well (without additional labor) only for “static” websites – no forms (including contact/comment forms). I’ll list a few applicable situations at the bottom of this post.
wget --html-extension --recursive --page-requisites --progress=bar --mirror http://localhost/mywebsite
This will generate an html file for every page of your website.
find . -type f -exec sed -i 's/localhost\\/mywebsite/www.andrejciho.com/g' {} \\;
Possible applicable situations:
This website is powered by WordPress, using the IndexOf theme.