Created
July 8, 2013 21:53
-
-
Save leek/5952818 to your computer and use it in GitHub Desktop.
Magento: Fix Hardcoded URL's in Database
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
UPDATE cms_block SET content = REPLACE(content, "http://www.example.com/", "{{store url=''}}"); | |
UPDATE cms_page SET content = REPLACE(content, "http://www.example.com/", "{{store url=''}}"); | |
-- | |
-- AW_Blog Only | |
-- | |
UPDATE aw_blog SET post_content = REPLACE(post_content, 'http://www.example.com/', "{{store url=''}}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment