Codex

Talk:Running a Development Copy of WordPress

Just a note to say that i revised my post because there was a small bug in it for Windows users which is fixed in the latest version

(replaced '/..' with DIRECTORY_SEPERATOR.'..')BenXO 18:46, 15 May 2006 (GMT)

Correction

Just a note on this bit: "there's a simple hack for functions.php that can doesn't require you to update your database"

...talks about functions.php but the article is mostly focused on wp-config.php

Also "can doesn't" ?

Bug in WP_LOCATION code sample redirects to https

function WP_LOCATION assumes $_SERVER['HTTPS'] returns null if http

At least for IIS, the value is "off" causing redirection to https.

This line should be replaced: $retval = 'http' . ($_SERVER['HTTPS'] ? 's' : null) . '://' . $_SERVER['HTTP_HOST'] . $wp_path ;

This line is correct: $retval = 'http' . ($_SERVER['HTTPS'] == "on" ? 's' : null) . '://' . $_SERVER['HTTP_HOST'] . $wp_path ;