?I tried some other things but still without success. The index.php has not to be in the rewrite rule because also images and css files must be served.

What I tried for example:
RewriteEngine on
RewriteRule ^(.*)$ /../$1

But this results in a 400 Bad Request error because of the dots

Derk

-----Oorspronkelijk bericht----- From: scs
Sent: Wednesday, January 26, 2011 11:58 AM
To: Derk
Cc: [email protected]
Subject: Re: [fw-general] Zend Framework application and subdomains

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


Reply via email to