I think Jurian meant to do it in the following line like: RewriteRule ^.*$ /path_to_your_public_folder/index.php [NC,L]
scs On Wed, Jan 26, 2011 at 12:43 PM, Derk <[email protected]> wrote: > Thanks for your answer. Do you have an example? I tried this in > public_html/subdomain/.htacccess and some other things > > RewriteEngine on > RewriteBase /../ > RewriteRule ^.*$ index.php [NC,L] > > But it all results in a 400 Bad Request or a 403 Forbidden > > Regards > > -----Oorspronkelijk bericht----- From: Jurian Sluiman > Sent: Wednesday, January 26, 2011 11:08 AM > To: [email protected] > Subject: Re: [fw-general] Zend Framework application and subdomains > > On Wednesday 26 Jan 2011 11:04:02 Derk wrote: >> >> Hello, >> >> I’m trying to install a Zend Framework application that uses some >> subdomains in a shared hosting environment. So I didn’t have access to >> httpd-vhosts.conf. The problem is that when I make a new subdomain in >> DirectAdmin the subdomain points to the directory ‘public_html/subdomain’ >> instead of ‘public_html’. Therefore requests to a subdomain do not go >> through the public_html/index.php >> >> Does someone has experienced this before? > > With a .htaccess you can redirect all calls from public_html/subdomain to > public_html. For each subdomain you get a new folder in the public_html, but > everything else will work fine. > > Regards, Jurian > -- > Jurian Sluiman > Soflomo - http://soflomo.com >
