You will also probably need to enable wild card sub-domains? no? Thanks Dan
On 19 February 2010 14:23, Rob Keplin <[email protected]> wrote: > I would look into Zend_Controller_Router_Route_Hostname for this: > http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname > > This way, you can route the page to a specific controller/action when a > subdomain is present, and retrieve what language they want as if it were > part of the query string. > > Rob > > > > Laurens van Vliet wrote: > > I have a website that I made with ZF and it is running on a server. Because > I want this website to be multilanguage, I made some subdomains for the > different languages on the webserver. > Lets say the site is running now on en.mywebsite.com. In this directory > all the application code, data and library is located. > I also have on the same server these es.mywebsite.com and > fr.mywebsite.comdirectories. My idea was to put the files that are normally > in the /public > directory of a zf application in these subdomain dirs. And by pointing the > Application_path in the index.php files to the > en.mywebsite.com/application I thought I could run the application on the > subdomains. > > When I open the es.mywebsite.com in my browser I get a error message like > this: > Fatal error: Uncaught exception 'Zend_Config_Exception' with message > 'parse_ini_file(../application/configs/application.ini) [<a > href='function.parse-ini-file'>function.parse-ini-file<a>]: failed to open > stream: No such file or directory' in > /var/www/zend/ZendFramework-1.9.7-minimal/library/Zend/Config/Ini.php:184 > > Is my approach correct to run a single application on different subdomains > and how can I solve this? > Can someone help me with this problem? Thanks! > > Regards, > > Laurens van Vliet > > > >
