1
vote
1answer
70 views

htaccess - Wildcard subdomains to subfolders

So the idea is that I have: domain.com/.subdomains/domain1 (2,3,4,etc) And I want to map: domain1.domain.com -> domain.com/.subdomains/domain1/ domain2.domain.com -> ...
0
votes
0answers
147 views

mod_rewrite in .htaccess w/ wildcard virtual hosts - preserving subdomain while funneling requests through index.php

I have a project which utilizes wildcard subdomains to allow requests for www.foo.com, api.foo.com, & admin.foo.com to utilize the same document root. Routing for this project is based initially ...
0
votes
1answer
679 views

Configuring httpd.conf to handle wildcard domains with *multiple* scripts

I have a full-blown site like: http://www.example.com (uses index.php) http://www.example.com/scriptA.php http://www.example.com/scriptB.php I now want to have the possibility of setting up ...
0
votes
0answers
207 views

apache mod_rewrite subdomain, domain and url arguments

I am trying to use mod_rewrite to capture a subdomain, domain, and the arguments passed with the url. I have multiple domains pointing to a single ip address, with both @ and * wildcard a-records, so ...
1
vote
2answers
285 views

Apache conf: how to specify subdomain in <Directory /path/to/subdomain> when using mod_vhost_alias for wildcard virtual hosts

To start with, we wanted a request to *.example.com to be handled by a corresponding /var/www/*/ directory, and we have got this working by using mod_vhost_alias with VirtualDocumentRoot, as follows: ...
0
votes
1answer
130 views

Subdomains from folders on Apache

I have a website on localhost, mapped in HOSTS as: 127.0.0.1 www.yorkshiretestingwebsite.com 127.0.0.1 yorkshiretestingwebsite.com However, the folder (C:/www/vhosts/yorkshiretestingwebsite.com) ...