Last active
April 25, 2019 04:08
-
-
Save stevewithington/7832492 to your computer and use it in GitHub Desktop.
Mura CMS : Find old links in Mura CMS and replace/update them with new ones, quickly and easily with this little script.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Maybe you have site caching turned on?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've followed your simple steps but I am not getting the desired results. Once the old domain is replaced with the new, I should be able to refresh the page with the old domain and be directed to the new domain...right?