This file contains 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
#Wordpress Blog Url Migration | |
SET @old_url = 'http://your_old_url.com'; | |
SET @old_www_url = 'http://www.your_old_url.com'; | |
SET @new_url = '//your_new_url'; | |
UPDATE wp_options SET option_value = replace(option_value, @old_url , @new_url) WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, @old_url , @new_url); | |
UPDATE wp_posts SET post_content = replace(post_content, @old_url , @new_url); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,@old_url , @new_url); |
This file contains 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
// This is heavily based on Backbone.SubRoute (https://github.com/ModelN/backbone.subroute) by Dave Cadwallader, who | |
// helped me out in this discussion thread: | |
// https://groups.google.com/forum/?fromgroups=#!topic/backbone-marionette/KTw7USoA6Gs | |
;define([ | |
'underscore', | |
'marionette' | |
], | |
/** | |
* A module that defines and adds Marionette.SubAppRouter to the Marionette object |