I had a similiar issue when setting up a subdomain. What Adam is
saying is the correct code, but just remember to add the rewrite rule.

Here is what I had to do in my primary .htaccess file:

<IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{HTTP_HOST} subdomain.second-domain.com
        RewriteRule subdomain/ - [L]

        RewriteEngine on
        RewriteRule    ^$ app/webroot/    [L]
        RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

On Nov 4, 7:34 am, Adam Royle <[EMAIL PROTECTED]> wrote:
> Haven't tried this, but I'm guessing something like this... ignoring
> your second-domain.com in the primary site's .htaccess
>
> rewritecond %{http_host} !^(www)?\.second-domain\.com
>
> On Nov 4, 4:37 pm, Kyle Decot <[EMAIL PROTECTED]> wrote:
>
> > I have a CakePHP app installed on my primary domain/hosting account. I
> > want to have an add-on domain on the same hosting plan. I have my
> > folders set up as follows:
>
> > /
> > -- .htaccess
> > -- app
> > -- cake
> > -- (second domain folder)
>
> > The problem is that is when I go towww.second-domain.comiget an
> > internal server error. I assume that this is due the the rewrite rules
> > in the .htaccess file. What Do I need to add to this file in order to
> > make cake not rewrite my second domain folder? Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to