subdomain

Subdomains and Folders

Just started a site and I have an /img directory on the main domain. I would like to set up a subdomain(where the file folder is just another one in the main directory) that is able to use the /img folder, but it doesn't work. The /img and /subdomain folders are on the same level, so to display images in the main domain I type: <img src...

Redirect subdomain to folder

Here's what I'm trying to do. When you type m.example.com I want users to be redirected to example.com/m/ but I would like the url in the address bar to remain m.example.com if possible. ...

How to dispatch url with subdomain in Zend PHPUnit Controller test?

I want to test my controller which works on subdomain www.username.domain.com The problem is when I dispatch in ControllerTestCase it throws Zend_Controller_Dispatcher_Exception routes.php: $userRouter = new Zend_Controller_Router_Route_Hostname(':user.domain.com')); $router->addRoute('user', $userRouter->chain(new Zend_Controller_...

appengine and no-ip.org

Hi folks! :) I'd like to run an appengine app on a subdomain like something.no-ip.org instead of something.appspot.com is this doable? If so, can you please help me understand? :) Thank you so much for your help! ...

Subdomain routing in Rails and main site

I am trying to set the following up: www.domain.com goes to the main site (user can register, information about application) foo.domain.com goes to the main application that is customized to the user(subdomain) what is the best way to separate the rails parts? Namespaced controllers seem frowned upon. ...

How to handle session items between subdomains in asp.net?

HI All, In my application i have so many subdomains, now i need to transfer the session from one subdomain to other. How to do it? ...

mod_rewrite complexity problem

I have a need to mod-rewrite my domain based off of subdomains...there are two scenarios in which i would need to do this: my site is located in different cities...so losangeles.example.com should localized to los angeles, etc...essentially rewritten to www.example.com/?loc=losangeles i want to allow users to create username.example.co...

Best way to be done? Subdomains and MySQL

Hi! I'm asking your opinions about my next project.. I'm planning to make website which offers services where all users would be have own subdomain (user.mydomain.com) and own website. First I was thinking to really make real subdomain, generating automatically website code into their folder, creating own database etc.. Question #1: ...

wilcard DNS and Virtual subdomains?

I just don't get it.. I'm planning to get scenario like this: username.mydomain.com = mydomain.com/user.php?user=username Well, let's not go that far yet because this wildcard DNS is making me insane!! :/ I have DNS record * A my-ip-address And I have in my vhost file ServerAlias *.mydomain.com But it just doesn't work at all.....

Mac Web Sharing Subdomains

I'm using my mac's web sharing for my websute, and was wondeering if it is possible to add a subdomain to the mac web sharing... Thanks -Techy ...

How to direct subdomains to the correct JBoss App?

Hi, new to JBoss and am configuring some applications. I know how to do this in apache webserver, but not using Jboss. I have successfully deployed 3 applications on a redhat box, JBoss 4.2. If my server is called fruit.mycompany.com, I can access the three apps this way: http://fruit.mycompany.com:8080/quince http://fruit.mycompany....

Can subdomains be managed programmatically in an ASP.Net application?

I have an application to be written in ASP.Net 3.5 that needs to manage subdomains for a different website. The managing website and the controlled website are hosted on different Windows servers, but both run IIS 6.0. The management website needs to provide a UI that can add or delete subdomains on the controlled site such that reques...

Debugging mvc web application using subdomains in Visual Studio?

If I want to use subdomains for images, stylesheets and javascripts on my website (like img.domain.com), how would you set it up in Visual Studio 2008 so I am able to debug the website on my local computer? Is it possible ? and how ? The webdev server always uses localhost:port, is there anyway to map etc. img.localhost:port to a speci...

htaccess subdomain redirect *above* the rewritebase?

I have a photo gallery at mydomain.com/photos. I'd like to use RewriteRule to enforce photos.mydomain.com as the URL, but the photo gallery comes with its own .htaccess that declares a RewriteBase of /. I think that this is preventing me from doing the otherwise simple redirect I'm aiming for. How do I do this? ...

Hosting images on separate sub domains

My company hosts about 30 web sites all sharing the same code base and reusing many of the same images. Right now, the images for all of the sites are hosted on the one domain, and then every other site has to link to those images. i.e., www.example.com/images/hello.jpg and on www.example2.com we have something like: <img src="http://...

How can I make redirects based on subdomains in .htaccess?

.htaccess: RewriteCond %{HTTP_HOST} !^www\.example\.com RewriteCond %{HTTP_HOST} ([^.]+)\.example\.com RewriteCond %{REQUEST_URI} !^/index\.php$ RewriteCond %{QUERY_STRING} !^id=. RewriteRule (.*) /index.php?id=%1 [L] Expected behavior: If there is a subdomain (test.example.com) it goes to the folder /service/ and if there isn't it g...

Convert downgrade Linq to normal C# .NET 2.0 for domainname-parser codes that use publicsuffix.org

Hi, Based on this answer http://stackoverflow.com/questions/288810/get-the-subdomain-from-a-url, I am trying to use code.google.com/p/domainname-parser/ that will use Public Suffix List from publicsuffix.org to get subdomain and domain for managing my cookie collection. In the current moment, Domainname-parser is the only .NET code I f...

.htaccess rules with a subdomain and two domains

I have a domain domain.com that I use as my primary domain. I also own a second domain domain2.com that I have automatically go to domain.com This is done with .htaccess: RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC] RewriteRule (.*) http://www.domain.com/$1 [L,R=301] I want to set up a subdomain sub.domain.com but with that curre...

Redirect subdomain request to subdirectory + https (using .htaccess)

Hi guys, I've got some issues with the .htaccess that I just can't get to work. Hope someone could solve this one. I have a SSL certificate on the www.-domain on an Apache server. I want all http://subdomain.domain.com requests on a specified list of subdomains to redirect to https://www.domain.com/subdomain. The second problem is, tha...

Is there any disadvantage (in SEO terms) to using a country-specific subdomain over the country's TLD?

Hey guys, I'm developing a site at the moment which requires localization to a number of different countries. We own our site's name on many of the countries' TLDs (though not all of them). From a developer's perspective, many things are simplified if we could simply redirect all traffic to "domainname.co.uk" to "uk.domainnname.com" (or...