wildcard-subdomain

Alternative to Response.Redirect to effect a subdomain

I have a site that is hosted in shared hosting environment. They use a wildcard subdomain setup and suggest using Response.Redirect to achieve the illusion of a subdomain. Is there a way of doing this such that the "switch" takes place on the server rather than bouncing back down to the browser first? Server.Transfer only works if I tr...

wildcard ssl on sub-subdomain

Hi, we have wildcard ssl certificate for *.domain.com, and have a website with sub1.sub2.domain.com safari 4.0.4 on MacOsx pops up a certificate error(presumably because of wildcard interpretation), while safari 4 on windows does not. also ie8 behaviour is mixed at best, some ie8 do not display the certificate error and some do not. ...

Problem with sessions, subdomains and authlogic in Rails.

I've got a rails app with authlogic authentication and a username.domain.com structure built with subdomain-fu. But my session breaks when going from domain.com to username.domain.com. I've tried to add config.action_controller.session = {:domain => '.localhost:3000'} to my development.rb but that seams to break authlogic disabling s...

"Subdomain" after my website name

Is there a way to create (dinamically) a kind of subdomain that goes between my website domain and the .com? For www.onlinevet.com, for instance, would be something like: www.onlinevet.dog.com www.onlinevet.cat.com ...

Disable apache catch-all subdomain

Hi, I have a problem with my apache2 configuration and I hope someone here can help me. There is one server with one IP and a few domains. http://123.123.123.123 should have /var/www/123.123.123.123 as DocumentRoot http://www.domain1.com should have /var/www/domain1.com as DocumentRoot http://blog.domain1.com should have /var/www/blog.d...

ASP.NET MVC: How to implement a wild card SSL for more than one static domain on a single IP?

A wild card SSL allows any domain prefix: *.mydomain.com accepts ssl.mydomain.com secure.mydomain.com anything.mydomain.com Given that MVC can route the request to the correct view based on the URL, is it as simple as loading the wildcard SSL cert on an IP, then use DNS to map the various names to the IP? ...

Subdomain URL Rewriting and Web Apps

So a lot of web apps have the customer choose their own subdomain, ie mycompany.webapp.com Presumably, every subdomain works off the same set of files and the unique subdomain is perhaps stored as a session object. So how does the URL rewriting work? If someone goes to mycompany.webapp.com, you have to rewrite their unique address to a...

pointing multiple subdomains using wildcards to a folder

I want to use wildcards to send the request to any sobdomains to the folder of the domain.please specify how to achieve this in apache2 using the virtual host settings.The domain and its subdomain uses the same IP address. the subdomains cannot be predetermined as they are created by users. Thanks ...

Subdomain and Uploadify not working

I have wildcard subdomains for example: .example.com goes to example.com/app/ It seems uploadify works fine if I use the directory instead of the subdomain. But when I use the subdoman and click on the upload image nothing happens. It seems to load the flash fine and no JS errors but when I click on the button I do not get a file brows...

setting cross-subdomain cookies accessible to a sub-subdomain?

I've set a cookie with domain of .example.com. It is available for every first-level subdomain on my site, as it should be. It is not, however, available on nth level subdomains, i.e. sub.subdomain.example.com and too.many.subdomains.subdomain.example.com don't see the cross-subdomain cookie while subdomain.example.com does. Is there an...

*.mydomain.com - A record or CNAME?

Some people are saying use an A record and others a CNAME for a catch all subdomain. Which should I use and why? ...

URL Rewriting for user accounts

We currently have domain.com/username redirected to domain.com/setsession.asp?u=username which then redirects to the app at domain.com/theapp. This means users always see domain.com/theapp, so browsing to a page shows domain.com/theapp/somepage.asp Looking to move this to subdomains ie username.domain.com (we'll get the host name a...

Redirect for .htaccess Wildcard Subdomains

Hello, I've been trying to figure out a way to redirect requests for wildcard subdomains to a specific folder ( called 'core' ) and calling the requested page/file from that specific folder. For example, making all calls to -http://johnny5.mysite.net redirect to -http://mysite.net/core/, or -http://docholliday.mysite.net/login.php redir...

Sub domains on the fly or Wild Card subdomains

Hey there Stack OVerflow Is it possible to redirect everything in a subdomain to the main domain. Eg anything.example.com something.anything.example.com must all go to example.com and anything.example.com/page.php something.anything.example.com/page.php must all go to example.com/page.php is this possible ? on a shared host ? ...

Wildcard subdomains using htaccess

Hi all, I'm having some trouble getting the code statement beneath to work as intended. The first part of the code is all good. When a user hits example.com without 'www', he's being 301 redirected to www.example.com to protect the ingoing links. At the same time I'm trying to use subdomains. If a user hits candybar.example.com I want ...

htaccess for subdomain

I need a .htaccess file: the file will rewrite rule for: xyz.sitename.com will be rewritten as: sitename.com/index.php/a/b/xyz xyz.sitename.com/m/n/o will be rewritten as: sitename.com/index.php/m/n/o/xyz sitename.com/m/n/o will be rewritten as: sitename.com/index.php/m/n/o ...

Dynamic creation of subdomains

I'm creating a website using MVC framework (Yii) and I need to dynamically create subdomains, i.e. http://company.website.com So, in order to achieve this I've added a DNS wildcard (*.website.com). Now the problem is that my application controllers are all the same for www.website.com and for company.website.com. For example, I have a U...

PHP HTTP_HOST subdomain extraction given that a subdomain be a wildcard and contain more than one '.'

I'm trying to extract the subdomain from the HTTP_HOST value. However I've stumbled into a problem where if the subdomain has more than one dot in it it fails to match properly. Given that this is a script to run on multiple different domains and it could have an unlimited amount of dots, and the tld could be either 1 or 2 parts (and any...

Dynamic subdomains + defined subdomains via htaccess

I hate asking questions about mod_rewrite, but I can't seem to get these rules working properly. I had it setup and figured out once before, but a few years have passed and now it's just not playing nice and my mod_rewrite knowledge is back to uhhhh...... Essentially what I want to do is force www on the main domain, example.com. (or f...

Mod_rewrite to SHOW a redirect from a wildcard domain

I am so about to kick mod_rewrite to the curb. Talk about "doesn't play well with others." Are there any witchdoctors about that can help me with this? I have wildcard dns set up to identify users. I would like to go from: http://username.domain.com/foo/bar to: https://www.domain.com/qux/waldo/username/foo/bar Is this possible? I'm...