Wildcard subdomains are useful to allow end users of a domain-based multisite network to create new sites on demand. In this type of network each new site has its own subdomain, and the wildcard configuration means that those subdomains do not have to be configured individually.
Questions tagged [wildcard-subdomain]
456 questions
1
vote
2 answers
My wildcard sub-domains are not working properly
Hie all,
I'm trying to make a dynamic sub domains for my users like username.host.com instead of www.host.com/user.php?user=username
For that i created a A RECORD in my hosting like
*.mosto.in 208.91.199.44 Active
In my .htaccess file i've…

Radhakrishna Rayidi
- 510
- 2
- 9
- 24
1
vote
2 answers
How to route/redirect *.foo.org → *.foo.biz via DNS records?
I registered my domain foo.org and along with it they gave me foo.biz for free. I don't really like it, but as I said, they gave it to me for free... And I want to route absolutely every request involving foo.biz to foo.com, including subdomains.
In…

Fernando Espinosa
- 4,625
- 1
- 30
- 37
1
vote
2 answers
Cannot figure out this wildcard subdomain mishap
I've been trying to accomplish this for hours now and for some reason it does not want to work.
All I want is username.domain.com to internally go to domain.com/users/username
I set-up my dns that the wildcard subdomain points towards…

user1993382
- 87
- 1
- 9
1
vote
1 answer
How do I access wildcard subdomains in localhost (.NET MVC 4)?
Thanks for looking!
Background
I am developing a web app on the .NET 4.5 framework (C#) that needs to allow users to create an account and then have a subdomain with their account name (e.g. "foobar.myDomain.com").
I realize that this needs to…

Matt Cashatt
- 23,490
- 28
- 78
- 111
1
vote
2 answers
Codeigniter - Can "foo" subdomain automatically use controllers in "foo" folder?
As is usual with Codeigniter, assuming I have $route['default_controller'] = "welcome";, if I request the url on the left, I am using the controllers listed on the right:
www.foo.com/ => applications/controllers/welcome.php with method…

pbarney
- 2,529
- 4
- 35
- 49
1
vote
2 answers
pseudo subdomains with .'s in subdomain name asp.net site
I have a .net site and couple of domains with wildcard dns pointing to it. I use pseudo subdomain system where i extract subdomain name from url with below code
public static string GetSubdomain()
{
string domain =…

nLL
- 5,662
- 11
- 52
- 87
1
vote
1 answer
htaccess: change address bar to remove prohibit parameter
I try to make subdomains with htaccess.
it's working fine so far. I'm using the subdomain as a Get-Parameter within another script.
However, if someone just uses this parameter, the subdomain-parameter is overwritten.
user1.domain.com/?site=user2…

Julian
- 493
- 4
- 22
1
vote
1 answer
redirect to 404 wildcard subdomain
I setup a wildcard A record on my domain registrar. Now if a user access a missing subdomain on my domain, they will be redirected to the homepage. Currently my initial setup was this:
ServerAdmin webmaster@localhost
…

Leandro Garcia
- 3,138
- 11
- 32
- 44
1
vote
1 answer
SSL for Wildcard Sub-Domains
I am trying to setup wildcard sub-domain. So my domain is www.mydomain.com so anything comes like this test.mydomain.com, welcome.mydomain.com will work, that is fine.
When it comes to SSL, if I am buying SSL for www.mydomain.com then will that…

sriansri
- 11
- 1
1
vote
1 answer
Wildcard Subdomains with CakePHP htaccess
I currently have this CakePHP Setup: Variable Prefixed Routing in CakePHP
DNS for *.example.com and Apache Entries for handling Wildcard subdomains is already present. Unfortunately, I can't seem to be able to merge the CakePHP's default .htaccess…

Jimmie Lin
- 2,205
- 2
- 23
- 35
1
vote
1 answer
nginx wildcard subdomain ssl rewrite
Have a wildcard dns subdomain record. Using domain-only validation SSL certificate.
Need to set nginx rewrite rules in that way:
http://site.com => https://site.com
http://*.site.com => http://*.site.com
I guess it is something like this
server…

dima.h
- 860
- 2
- 10
- 14
1
vote
1 answer
ssl self signed wildcard certificate on sub domain - internet explorer and chrome cannot display page
I am working on a development server that is running only one website example.com, as well as running all of the subdomained user accounts someone.example.com. The server is running CentOS and I have created a self signed wildcard certificate for…

ProdigyProgrammer
- 415
- 3
- 14
1
vote
1 answer
How do i create a virtual subdomain using htaccess?
I would like to create virtual sub domains for clients who will have websites with us but the websites will be served from a single url in reality for example;
Customer requests website robshop.mywebsite.com so we create that on the fly but the…

Rob Kelly
- 21
- 1
- 4
1
vote
1 answer
How to configure .htaccess in this way?
I have installed wildcards successfully. And I managed to make dynamic subdomain to work with a simple trick.
.htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# *.example.com
RewriteCond…

arkeros
- 13
- 2
1
vote
2 answers
SSL wildcard certificate - multiple subdomains and multiple tiers
I have the following requirement to map many domains to a single site instance for my web application, and I'm wondering if this is solvable using a single SSL wildcard certificate in IIS 7, or whether I need two wildcard cerfiticates. Here's my…

Adam Levitt
- 10,316
- 26
- 84
- 145