I clone a website for downline sellers ( an herbal product, amway-style) and each new seller gets a cloned 15 page site with their new domain name replacing all occurances of the original domain name. Nearly 1000 occurances across 15 pages!

I'd love a snippet of script to replace all domain name occurances in the mother-site calling an external page that I code the new domain name into once.