For our development servers, we have always used output buffering to replace the URLs (dealnews.com) with the URL for that development environment. Where we run into problems is with CSS and JavaScript. If those files contains URLs for images (CSS) or AJAX (JS) the URLS would not get replaced. Our solution has been to parse those files as PHP (on the dev boxes only) and have some output bufferi