Skip to content

Instantly share code, notes, and snippets.

@experius-nl
Last active February 26, 2018 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save experius-nl/8e5cfd21bbb407dfdaa79021ee1f3da1 to your computer and use it in GitHub Desktop.
Save experius-nl/8e5cfd21bbb407dfdaa79021ee1f3da1 to your computer and use it in GitHub Desktop.
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8888/') WHERE path LIKE '%web/unsecure%' AND value LIKE '%http://%';
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8443/') WHERE path LIKE '%web/unsecure%' AND value LIKE '%https://%';
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8888/') WHERE path LIKE '%web/secure%' AND value LIKE '%http://%';
UPDATE staging.core_config_data SET value = CONCAT( LEFT(value, LENGTH(value) -1), ':8443/') WHERE path LIKE '%web/secure%' AND value LIKE '%https://%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment