How to turn off new user registration (for certain domains w/ Domain module)
leenwebb - October 21, 2009 - 19:38
I have a site using Domains to control a number of sub-domains. User registration for most of the sub-domains is open (as in: anyone can register), but I need to turn it off for one of the sub-domains. Any ideas how to do that?
I was thinking of doing some sort of hook_user monster combining $_domain and $op=register (to basically say: if the $op is register and the domain is X, display this error message instead of the reg form). Is there a better way? Or are there perils ahead I should watch out for?

I had a related problem, the
I had a related problem, the solution I went with was to use the Path Redirect module and redirected http://www.example.com/user/register somewhere else. Not the best solution, but it worked.
Oh, that seems so much easier
Oh, that seems so much easier than my solution. But... I am getting an error when I try to create the alias that says "You cannot create a redirect from a currently valid path." How did you get around that?
Edit: found it! #535798: Cannot create a redirect from a currently valid path?