your .htacces file must be this :

   RewriteRule    ^$ /test/app/webroot/    [L]
   RewriteRule    (.*) /test/app/webroot/$1 [L]

On May 11, 5:38 am, laptop <[EMAIL PROTECTED]> wrote:
> hi all,
>
> was just struggling to figure out how to do this in a shared
> environment with cPanel.
>
> subdomain files are placed inside a directory inside where the www
> domain files are located this means that the subdomain
> test.example.com will be availablewww.example.com/test
>
> placing a .htaccess file for cake to work meant that it applied to
> test.example.com and i was getting server errors.
>
> following is a code snipped which allows you to restrict to just that
> database
>
> RewriteCond %{HTTP_HOST} ^www\.novanate\.com$
> RewriteRule    ^$ app/webroot/    [L]
> RewriteCond %{HTTP_HOST} ^www\.novanate\.com$
> RewriteRule    (.*) app/webroot/$1 [L]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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