Last active
December 29, 2015 03:09
-
-
Save nikolazic/7605305 to your computer and use it in GitHub Desktop.
Get Magento URLs
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
# Find out what the old URL is | |
select * from core_config_data where path like 'web/%secure/base_%' or path = 'admin/url/custom' order by path; | |
# Replace | |
update core_config_data set value = replace(value, '://OLD', '://NEW') where path like '%web/%secure/base_url%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment