subdomain

Can I rewrite from subdomain to folder avoiding redirection?

I want my subdomain to point directly to a folder. That is if an HTTP request is made to apple.example.com, I want the response to be the contents of example.com/apple/index.html, but not a 301 error. Is it possible? ...

Public Wildcard Domain Name To Resolve To 127.0.0.1

Is anyone aware of a public wildcard domain name that resolves to IP address 127.0.0.1. For example if I wanted to test a URL locally such as mywebsite.localhost.com or example.localhost.com but I don't have control of DNS settings (hosts file or whatever) then I would use this public DNS to resolve to 127.0.0.1. It needs to be wildcar...

appengine, DNS, subdomain

Hello, I would like to know, how to configure my DNS to work with subdomains on google appengine. It already works for www.myproject.com, but i would like to let it work also for www.xmass.myproject.com . Do you kow, how to set CNAMEs? ...

Creating replicated websites - how is it done?

I have a database/site that I would like to allow users to "white label". In other words, if a user signs up for an account I'd like to allow them to create a brand-less copy of the site which they could access through a custom sub-domain. I would also like to give the user limited customization features like logo, color, etc. Can anyon...

mod_rewrite needed

lets says I have a domain example.com and I have wildcards dns switched on. on example.com a user can signup with username and password. once registration is done, username.example.com starts redirecting to example.com/script/script.php?user=username. address bar would still show username.example.com what would be the contents of the .h...

Pointing a subdomain to a subfolder using .htaccess

My webhost automatically forwards all requests to *.mydomain.com to the toplevel domain mydomain.com. I wanted to map any subdomain to a specific folder on my toplevel domain. i.e. sub.example.com must be mapped to example.com/someFolder (without change in the address bar). After digging around on the net, I came up with this: Rewrite...

Zend Framework subdomain problem

Hi, I am using .ini file to add routes in my application. resources.router.routes.username.type = "Zend_Controller_Router_Route_Hostname" resources.router.routes.username.route = ":username.example.com" resources.router.routes.username.defaults.module = "userinfo" resources.router.routes.username.chains.index.type = "Zend_Controller_Ro...

.htaccess subdomains

Hallo all. i want to create a .htaccess file if i type subdomain.domain.com can i use ( subdomain ) as a query string and domain.com like domain. can i get help to this? :) tanks ...

free subdomain redirection services with api and path forwarding?

Hi I am familiar with dot.tk, a free subdomain service that provides url cloaking and an api to create new subdomains programmatically. Tragically it seems to be the only one that does not do path forwarding, so if I have a mydomain.tk url pointing to myhost.com and want to access myhost.com/path/to/resource via mydomain.tk/path/to/res...

Hosting static images on subdomain

What are the benefits of hosting your images on a subdomain such as "img.domain.com"? If you're not on a CDN is there any real benefit to this? Update So doing this with CSS and JS files would also serve the same purpose? ...

AJAX Calls from one subdomain to other

I want to call AJAX Request from one subdomain to other. Say I want to request http://subdomain2.site.com/ajax/handler.ashx from a ASPX page on other subdomain http://subdomain1.site.com/Default.aspx Any IDEA how to do this? ...

How to set a cookie that is only valid for a specific domain like example.com but not its sub-domains?

Hi, if I have a domain example.com, is there any way to make cookies valid only for that specific domain and not for sub-domains like www.example.com? I know I can set it to only www.example.com, but can it be without a sub-domain? ...

Why ww2 sub domains?

I have seen on the web some domain names having prefix of ww2 or ww3 or so (ww2.somedomain.com, ww3.yourdomain.com). And these happen mostly when travelling from a page to page. What would be the reason of having such subdomains? Is there anything special about them or are they just another sub domain? I mean, are they useful in any part...

using mod_rewrite to redirect from subdomain to maindomain

Hi! My problem is that i have a functioning subdomain (sub.mydomain.com). sub is loaded in mydomain.com/sub. What i would like to do is to redirect all requests to sub.mydomain.com to mydomain.com. Somehow it seems that when im the subdomain i cannot access the rootfolder (main domain). I can get it working with from mydomain.com/sub ...

Domains & Foreward Slash

Hi, This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b.com sub2.site-b.com Notice the two sub domains! However, our client has asked if we can implement the following url structure inst...

Subdomain Routing Rules (using chaining) Broke after upgrading to Zend Framework 1.9.5, but only for the subdomain itself, not for pages in the subdomain

I asked a similar question months ago (see How do I write Routing Chains for a Subdomain in Zend Framework in a routing INI file?), on how to write chaining rules in an app.ini format. The answer to this question worked wonderfully! Now, however, I have upgraded to the latest version of the Zend Framework 1.9.5 (I needed to upgrade for a...

subdomain routing to multiple controller issue

I have a site: www.mydomain.com where we have administrative controls hidden away from normal customer view. I would like to only access the administrative features under a subdomain such as admin.mydomain.com. I can ensure that any requests to an administrative feature has to have admin in the subdomain, but how can I make sure that i...

Exclude certain subfolders and domains in redirects

This is a continuation from http://stackoverflow.com/questions/1704845/redirect-only-html-files How can I change my .htaccess to make it exclude certain subfolders or subdomains from the HTML-only redirect? I tried doing using this code to exclude the 'downloads' subfolder and the 'dev' and 'support' subdomains, but it didn't work: Rew...

Subdomains and DNS

Hi, I currently have my own domain name and dedicated server and I offer different packages to my clients. What I want to be able to do is have them sign up with my website and create a package automatically that they can access via their username as a subdomain e.g. http://yourusername.mywebsite.com I currently have DNS entries set u...

grails - subdomain based projects and links

I am trying to develop a grails application that has "root" content (www.mydomain.com/about for example) but will also support "projects" based upon the subdomain of the request; for example myproject.mydomain.com > www.mydomain.com/myproject. As a first pass, i have the URL configuration below: "/$controller/$action?/$id?" { ... } "...