The default domain is set to 'www' but this causes errors when testing on a local machine when all you have is a machine name, e.g. 'localhost'. Making the default just an empty string would fix this since most sites alias www.example.com to example.com anyway.

What do you think?

Comments

agentrickard’s picture

Right. This is hard coded at the moment and I haven't fixed it.

It only causes a problem for the Domain Swtiching block routine and at admin/build/domain.

The fix is to comment out line 28 of domain_admin.inc:

      drupal_goto($redirect);

This is one of the reasons I haven't rolled a release yet.

agentrickard’s picture

Of course, the module won't really work on 'localhost' anyway. To really test it, you need to set up widlcard DNS or at leat VirtualHosts.

On my test machine, I have the following VirtualHosts pointing at 127.0.0.1

- ken.test
- www.ken.test
- one.ken.test
- two.ken.test
- three.ken.test

agentrickard’s picture

Making this change may fix the problem.

agentrickard’s picture

Status: Active » Closed (fixed)

This has been fixed by changing the domain registration a fully-qualified domain string.