|
#1
|
|||
|
|||
|
Hi,
Is it possible to use wildcard subdomains on your shared hosting? I'd like to install Wordpress MU and let my users register their blogs in the format of userblog.mydomain.com instead of mydomain.com/userblog. I will be happy to know about this feature before I purchase ![]() Thanks a lot in advance! Kind regards, Sergey. |
|
#2
|
||||
|
||||
|
Yes that is possible, contact HG support and ask them to enable wildcard DNS for your domain.
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#3
|
|||
|
|||
|
Thanks a lot for this info!
Cheers, Sergey. |
|
#4
|
||||
|
||||
|
Good morning,
All you need to do is in your cpanel add a subdomain named * And have it point to your public_html. This sets up wildcard dns. From there the .htaccess file that wordpress MU uses to rewrite subdomains. Thanks, Josh Loe |
|
#5
|
|||
|
|||
|
Even more thanks!!!
![]() Regards, Sergey. |
|
#6
|
||||
|
||||
|
*Bright light appears above my head*
Well, I learn something new every day. And apologies that this is a bit offtopic, but.... Does anyone have a link that directly (and clearly!) explains how to effectively "use" that wildcard Domain? I have a forum that I could (I think) setup to allow that wildcard format, but need to know more first. From the wording of the OP's question, I'm assuming Wordpress has the functionality "built in", whereas my Forum does not. Thanks in advance. |
|
#7
|
||||
|
||||
|
Quote:
Its a custom setup and not many forums actually support it, but i'm sure a quick search of their site or google will turn up something for you. Josh Loe |
|
#8
|
||||
|
||||
|
Thanks, JoshL, that helps and answers a couple of my questions.
But I have to ask (given what I've read so far) whether that is ALL I need to do to enable wildcards for my primary domain. Or any of my Addon or Parked domains,for that matter. What I've seen indicates that httpd.conf has to be edited, and the DNS zone for the Domain in question has to have the entry: * (TTL-VALUE) IN A (Server IP Address) Is httpd.conf already enabled on Shared Servers? And does cPanel effectively add that A record correctly, simply by creating a * subdomain? Thanks in advance. |
|
#9
|
||||
|
||||
|
When you add a subdomain in cPanel it does create the A record in the DNS Zone and does add the information to the httpd.conf. On older versions of cPanel it would not allow you to use * as the subdomain or point to a separate location other than the folder with the same name as the subdomain. cPanel 11 does add the flexibility to add redirects in a different manner so I suspect it would add the correct information in httpd.conf. When I get home and have access to my server I may try it out. You may need to be sure you have the X3 theme for cPanel.
|
|
#10
|
||||
|
||||
|
Thank you, Rick!
I do have x3 (and cPanel 11) already. |
|
#11
|
||||
|
||||
|
I just tried it on an account on my dedicated and it worked fine. I just entered * as the subdomain and it put /public_html/ automatically in the document root field.
I decided to run another test and added a subdomain called new2. It also worked fine and did not break the wildcard subdomain. I know with cPanel 10 the wildcard entry had to be the last one in your DNS Zone and in httpd.conf which meant that if you added a subdomain after the wildcard was set up then the wildcard no longer worked. Good to see that cPanel is handling it pretty well now. |
|
#12
|
||||
|
||||
|
Thanks again for the info. I appreciate it. I'll file that away.
|
|
#13
|
|||
|
|||
|
Would the wildcard DNS trick work if I wanted to use a subdomain I created on my main Baby Croc shared account?
For example, I create a subdomain: blogs.my-domain.com, can I set it up so that: user1.blogs.my-domain.com etc... works? In addition, the other normal sub-domains I have should remain functional as per normal. Ie. I have: mysite.my-domain.com etc... as separate sites. Is this possible? Thanks. |
|
#14
|
|||
|
|||
|
Quote:
|
|
#15
|
||||
|
||||
|
You can see my Subdomain experience with HG and Drupal Framework at this link:
http://www.dslreports.com/forum/r223...bdomain-Module Simply adding *.domain.com does not seem to do it all on another recently added URL of mine that is under construction. I have a ticket in to see if I can get it straightened out. I referenced my ticket from back in May that previously worked great.
__________________
Jim, AKA usa2k VOIPo user, HostGator fan, DSLReports.com regular. Folding@Home, Team#4, and Foldinator Project. FAH-Tool, Progressive Tactics, usa2k, ... VoIP |
|
#16
|
||||
|
||||
|
This may be a really stupid question, but, is there a way to do this without having it redirect the cpanel.domain.com?
When I added the * sub, it redirected my cpanel.domain.com to the homepage lol Thanks in advance
__________________
I'm still new and learning, please bear with me |
|
#17
|
||||
|
||||
|
I guess there's not a way eh?
__________________
I'm still new and learning, please bear with me |
|
#18
|
||||
|
||||
|
I don't know of a way to do it in cPanel. With a dedicated server it would be possible to do so manually.
|
|
#19
|
||||
|
||||
|
I'll dig around on google and see what I can find. I appreciate the response Rick
__________________
I'm still new and learning, please bear with me |
|
#20
|
|||
|
|||
|
Quote:
So I'm confused. Can it, or can it not be done? Is the issue is that it needs time to propogate even with wild cards and i need to wait a while first or is it really not working |
|
#21
|
||||
|
||||
|
And "it is not working" means what?
You were able to create sundomain "*" but it is not working? What happens? Or if you are not able to create the subdomain, what happens when you try?
__________________
quietFinn - netFinn Finland "Be who you are and say what you feel because those who mind don't matter and those who matter don't mind." - Dr. Seuss |
|
#22
|
|||
|
|||
|
Not working as in I am able to add the * fine under the subdomains, however if I navigate to anything.domain.com I get the following:
Quote:
|
|
#23
|
||||
|
||||
|
It should work using the method described in this thread. Failure can be due to commands in the .htaccess file or other problems. We might be able to help more if we had the domain name so that we can see if it resolves for us.
If you continue to have problems getting it to work I would suggest opening a ticket with support rather than using Live Chat. The techs would be able to add the wildcard subdomain manually if it is not working with the cPanel method. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Subdomains hijacked? check your mail. and webmail. subdomains! | Barysh | Customer Reviews | 1 | 03-07-2008 08:11 PM |
| Wildcard subdomains | Wilcard | Pre-Sales Questions | 9 | 03-24-2007 06:55 PM |