Skip to content

Instantly share code, notes, and snippets.

@jsieber
Forked from stevewithington/muraFindAndReplace.cfm
Created February 14, 2014 18:45
Show Gist options
  • Save jsieber/9006630 to your computer and use it in GitHub Desktop.
Save jsieber/9006630 to your computer and use it in GitHub Desktop.
<cfscript>
// place this in your Site or Theme eventHandler.cfc, then reload your application!
public any function onApplicationLoad($) {
arguments.$.getBean('contentUtility').findAndReplace(
find='http://olddomain.com'
, replace='http://newdomain.com'
, siteid=arguments.$.event('siteid')
);
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment