Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created February 10, 2014 04:27
Show Gist options
  • Save csharpforevermore/8910366 to your computer and use it in GitHub Desktop.
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…
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