Query regarding subdomain redirection in Zend Framework
问题 I was looking for an approach using Zend Framework - similar to sites like bit.ly and tinyurl - where I can take a request to a subdomain and store the subdomain in a variable. For instance, a request to localhost/abcdef will return $s = abcdef. I'm not sure how to accomplish this in ZF, where a request to localhost/abcdef will return the init() of the abcdef controller. Thanks for all the help! 回答1: Just use a regex route. $routeitem = new Zend_Controller_Router_Route_Regex('(.*)', array(1 =