Jump to content

Restrict free subdomain for certain group?


Davidsweden

Recommended Posts

Is there a way to restrict the use of a certain subdomain?

 

I only want a small number of people to use the free subdomain when they order hosting.

 

Example:

 

Today I have ".myhomepage.com" as an alternative when ordering hosting. Users can create a free subdomain with that name.

 

But, I also have a domain that is for people living in my town. Like ".mytownsname.com".

 

I dont want everybody to use that town domain. Only users that know about it.

 

I can annonuce in my towns facebook for example:

 

"Hey! You can now get a free .mytownsname.com at my website. Just type in this code and you can set it up."

 

Something like that.

 

Hope you understand :)

Link to comment
Share on other sites

I think if you just wanted to offer one hosting product that had the option of using .mytownsname.com subdomains, the easiest solution would be to make it a hidden product...

 

http://docs.whmcs.com/Products_and_Services#Details_Tab

 

hidden products are not directly accessible through the order forms, but can be shared via direct links which you could use in your email / facebook posts etc...

 

http://docs.whmcs.com/Linking_to_WHMCS

 

cart.php?a=add&pid=35

I think your idea of using a promotion code to do this would be difficult to achieve - it could possibly work, but would require template modifications to check to see if a specific code was being used and if so, to give .mytownsname as another subdomain option.

 

however, if you can do what you want to do using hidden product(s), that would be far easier and quicker for you to setup.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated