Hi,
How does site aliasing work?
Thanks
Paul
You can (well, in fact, have to) use it when your site is accessible from multiple domains, for example, if you have .com and a .net domain.
But another feature is that you can select the root node for the domain. This makes it possible to point different domains (from different countries) to different home pages.
Hi,
Thanks for the reply.
Is there anyway round having to store the machine name of the Site in the Site Uri in the database.
For example, we want to move our stuff into a testing environment but the site uri is as follows:
http://localhost/myproject
The problem being that localhost is contained in the Uri. Obviously I can create a new Cuyahoga database but I was hoping there was maybe a way round this?
Thanks
Paul
Hi,
When you migrate the code base between environments you normally have to chaneg some configuration data somewhere. Either in the web.config or the database.
You shud be building a new database when you move the code base up an environment level. So you need to write a script to chaneg the site uri for the database when you deploy it to UserTesting for example.
Thats the way i have seen it done for the life cycle of software development.
Ged
dagda1The problem being that localhost is contained in the Uri. Obviously I can create a new Cuyahoga database but I was hoping there was maybe a way round this?
So you want to keep the existing (development?) database for testing purposes? In that case, the site alias is perfectly suited for the test environment. Just add an alias like
http://my-test-machine/myproject, and things should work fine.