I did the same procedure.
First Open constants.php and put my domain path.
// define('SCRIPT_URL', 'http://www.mydomain.com'); //no trailing slash
Then in random.php also change like
define('ROOT_PATH', 'http://www.mydomain.com');
After make changes both files i upload constants.php in includes folder and random.php in root path But it is not working.