Non-techncal solution:  landing page in / and cake tree in a
subdirectory. .htaccess won't need the /app/webroot lines in /
anymore.

On Thu, Nov 26, 2009 at 5:54 AM, moe <[email protected]> wrote:
> hey all,
>
> i need some help with my .htaccess.
>
> i have the cake folders, including the root .htaccess, in my root
> folder with mydomain.com pointing on it. in the root there is also a
> folder "shop" with a xtcommerce shop set up. a second domain myshop.de
> is pointing to this folder.
> with the default .htaccess of cakephp in the root myshop.de is not
> reachable –i 'm getting "Error 500 - Internal server error".
>
> this is the htaccess:
>
> -----
> AddType x-mapp-php5 .php
> AddHandler x-mapp-php5 .php
> <IfModule mod_rewrite.c>
>    RewriteEngine on
>
>    RewriteCond %{HTTP_HOST} ^mydomain\.de$ [NC]
>    RewriteRule ^(.*)$ http://www.mydomain.de/$1 [R=301,L]
>
>    RewriteBase    /
>    RewriteRule    ^$ app/webroot/    [L]
>    RewriteRule    ^(.*) app/webroot/$1 [L]
> </IfModule>
> ----
>
> if i rename or delete the .htaccess i can reach the shop.
> also when i delete the following lines:
>
> RewriteRule    ^$ app/webroot/    [L]
> RewriteRule    ^(.*) app/webroot/$1 [L]
>
>
> can anyone help me with this?
> the customer is hosting on 1and1 and i don't have access to the apache
> error.log file.
>
> thanks!!
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> 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
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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