Questions tagged [subdomain]

Subdomain is a domain which is a part of a larger domain. For example, 'sub.example.com' is subdomain of 'example.com' domain.

5761 questions
20
votes
4 answers

Rails, Heroku and Subdomains. Is my special case scenario feasible?

Here is my scenario: I have an application that will have to support multiple clients. Each client will be given a subdomain for there service. We will also have a brochure website that doesn't have the application, its just a website about the…
aarona
  • 35,986
  • 41
  • 138
  • 186
20
votes
1 answer

Do subdomains protect a domain's reputation when sending emails?

I'm working on an application that is meant to distribute emails by the thousands. We've started interfacing with Mandrill to accomplish this. So my coworker suggests that we use a subdomain to send all of theses emails out, so as to protect our…
Captain Hypertext
  • 2,446
  • 4
  • 27
  • 36
20
votes
3 answers

.htaccess Redirect Subdomain to External URL

We need to run a few subdomains from our main site and we need to point these to external sites that deal with the admin required. I simply need to redirect a subdomain to an external URL using .htaccess and also any advise about where to put it in…
Dan
  • 377
  • 1
  • 4
  • 12
20
votes
1 answer

.htaccess redirect - automatically add www. if no subdomain exists

I need any www. added automatically to my domain ONLY IF a subdomain is not already there. I do want subdomains to bypass this redirect. How can I do this?
kdjernigan
  • 417
  • 2
  • 7
  • 22
19
votes
2 answers

Working with subdomain in google app engine

How can I work with sub domain in google app engine (python). I wanna get first domain part and take some action (handler). Example:      product.example.com -> send it to products handler      user.example.com -> send it to users…
Zote
  • 5,343
  • 5
  • 41
  • 43
19
votes
6 answers

Subdomains not working when www is added?

I have purchased My Domain name from one registrar & hosted in another hosting company. I have created a sub domain from my hosting domain manager lie http://subdomain.domain.com and it works fine. But when someone types in www.subdomain.domain.com…
SEOFuGenX
  • 191
  • 1
  • 1
  • 4
19
votes
3 answers

Sub Directory to a different server

Is it possible to for a domain e.g. www.myclient.com to have a sub directory hosted on a completly different (our) server? They don't want to point subdomain.myclient.com to our servers so they want it as folder www.myclient/subdomain/ Thanks in…
Lizard
  • 43,732
  • 39
  • 106
  • 167
19
votes
4 answers

Certbot - DNS problem: NXDOMAIN looking up A for xxx - check that a DNS records exists for this

So I tried to run the following sudo certbot certonly --nginx --dry-run -d subdomain.domain.com -d www.subdomain.domain.com That gave me a DNS problem, however, it worked when running sudo certbot certonly --nginx --dry-run -d…
isebarn
  • 3,812
  • 5
  • 22
  • 38
19
votes
8 answers

CakePHP website mobile version

I have developed a full website with CakePHP framework and we'd like to make a very light version of the website for mobile devices (mainly iPhone/iPad). Is there a way to use the existing website with a new sub domain (for instance…
Nicolas
  • 2,754
  • 6
  • 26
  • 41
19
votes
4 answers

Can Areas in an ASP.NET MVC 2 application map to a subdomain?

Is there a way to map the Areas within an ASP.NET MVC 2 application to subdomains such as movies.example.com/Theater/View/2 instead of example.com/Movies/Theater/View/2 where { area = "Movies", controller = "Theater", action = "View", id = 2 }.
19
votes
6 answers

how to create subdomains in apache(xampp) server?

I've trying to create subdomain in my local xampp installation for some time. I tried editing my httpd.conf file and I entered the following: NameVirtualHost *:80 DocumentRoot /ecommerce ServerName…
Xk0nSid
  • 961
  • 2
  • 11
  • 19
19
votes
3 answers

Setting a cookie on a subdomain from an ajax request

I have a webapp on www.example.com and an API on api.example.com. The webapp makes ajax calls to the API. Somewhere I need to put a cookie on api.example.com to keep sessions track. To track my problem I've set test cookies on both subdomaines from…
Alexandre
  • 919
  • 1
  • 9
  • 13
19
votes
7 answers

How to fix ERROR: Site domain.com does not exist, while adding subdomain to apache2?

I'm trying to add subdomains to my home server. svn.domain.com trac.domain.com Due to dynamic IP I use dyndns service, on top of that I have domain.com hosted somewhere else. I created CNAME for subdomains on remote host to point to my…
user796443
18
votes
2 answers

Subdomain Routing in React and React Router

I have 3 types of users and we want to maintain the same code base for the project instead of having 3-4 code bases when most views are just subjective to the kind of users. Admin > admin.example.com Moderator > moderator.example.com Brands >…
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
18
votes
3 answers

what is difference between www vs www1, www2, www3 etc

Does it mean that user requests directing to the different servers? I usually see it on websites with high traffic. for eg:- https://www.tcs.com/ https://www2.deloitte.com/
Still Questioning
  • 670
  • 2
  • 7
  • 23