rewrite all subdomains to mainsite.com/controler/subdomain ? |
[eluser]Kumar Chetan sharma[/eluser]
Hey Phil, Hope you are doing good and have never heard or read following quote. Quote:"It is impossible to make anything fool- proof because fools are so ingenious."I managed to do this and am laughing at my self for my foolishness. Code: Options +FollowSymLinks On ur local windows machine look for hosts file in windows folder/system32/drivers/etc and add some entries for ur subdomain.domain.com Create virtual host for www.domain.com and also add server alias *.domain.com to this virtual host entry. place a print_r($_SERVER) in a php file and see how it works. Regarding Ajax, all my Ajax calls go to a url like /Ajax/mymethods/parameters not to domain.com/Ajax/mymethods/parameters. It seemed tough initially but I found a way to handle all requests that doesn't have subdomain present using php. Looks easy now :-) |
Messages In This Thread |
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 07-13-2009, 10:54 PM
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 07-14-2009, 05:00 AM
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 07-14-2009, 08:11 PM
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 07-15-2009, 03:34 AM
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 07-15-2009, 10:56 PM
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 08-24-2009, 05:59 PM
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 08-25-2009, 04:09 AM
rewrite all subdomains to mainsite.com/controler/subdomain ? - by El Forum - 08-25-2009, 12:50 PM
|