Cloning a website via wget

Technically, a WGET can be used to download a site’s page(s) to your local machine. Then, you could theoretically upload those files to your own web server, and the results will look like the original site. But only as the site existed when you WGET’d the individual pages. WordPress stores all site content in a … Read more

Cloning the last few posts & comments only

The easiest solution would be to use the WordPress export tool. Here you can chose a category and date range so you only export the latest ones. Posts should export with their comments too. Here is a link to the WordPress codex. http://codex.wordpress.org/Tools_Export_Screen

Theme stylesheet not called properly on cloned website

If you used a plugin to move the site. I use WP Migration for instance. When you install the migrated version to your local environment, the plugin will change the domain to whatever your local domain is. In your case it is 127.0.0.1. The reason it does this is that many of the options are … Read more

Curveball cloning WP site to new URL

The solution is to change the way the database is migrated. I was dumping it, doing a search and replace and then loading the amended database. I have discovered this breaks serialization. The solution which worked (and which I now believe is a best practice) is to dump and load the database unmodified. The use … Read more

Clone WordPress for testing on localhost (with Fiddler)

I added this to Fiddler’s script in %USER%\Documents\Fiddler2\Scripts\CustomRules.js under OnBeforeResponse and the response rewrite started working static function OnBeforeResponse(oSession: Session) { if (m_Hide304s && oSession.responseCode == 304) { oSession[“ui-hide”] = “true”; } if (oSession.oResponse.headers.ExistsAndContains(“Content-Type”,”text/html”)){ oSession.utilDecodeResponse(); oSession.utilReplaceInResponse(‘127.0.0.3′,’my.domain.name’); oSession.utilReplaceInResponse(‘http:’,’https:’); } } and needed to set // define(‘WP_HOME’,’http://127.0.0.3/blog’); // define(‘WP_SITEURL’,’http://127.0.0.3/blog’); define(‘FORCE_SSL_LOGIN’,false); define(‘FORCE_SSL_ADMIN’,false); in wp-config.php In order to be … Read more