Created
February 10, 2014 04:27
-
-
Save csharpforevermore/8910366 to your computer and use it in GitHub Desktop.
Changes the Umbraco site hostnames from one address to another. Saves having to use the CMS to change the domain (right click on a node > manage hostnames). In this example from localhost to the IP address 127.0.0.1. Any full URL requests like umbraco.library.NiceUrlWithDomain(1) will return a URL beginning with http://127.0.0.1/ rather than htt…
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
BEGIN TRANSACTION | |
--Changes from localhost to IP address | |
UPDATE [dbo].[umbracoDomains] | |
SET domainName = REPLACE(domainName,'localhost/','127.0.0.1/') | |
COMMIT TRANSACTION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment