Monday, January 26, 2009

Re: CakePHP In A Subdirectory?

Hey,

Ok, I found both of the .htacess files and added "RewriteBase /myapp"
so my .htacess file looks like:


<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /myapp
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>


I also deleted the cache (just the files) and now I am getting a 500
Internal Server Error. I have tried this both on my local machine and
a live server and the same thing happens. Anyone know what I might be
doing wrong?

On Jan 25, 9:49 pm, Paolo Stancato <paolodo...@gmail.com> wrote:
> Find .htaccess files (there are two)  and add "RewriteBase /myapp"
> into mod_rewrite section.
>
> Regards
>
> 2009/1/26 inVINCable <inVINCEable...@gmail.com>:
>
>
>
> > Hey all,
>
> > Very simply question but cannot seem to find the answer. I have the
> > directory structure and everything in tact in the normal way. However,
> > on my server I put the entire structure in the /myapp folder in the
> > document root.
>
> > Now, everything is all mest up and there is no CSS and files are
> > missing and such. Surely cake has a simple variable to reflect these
> > changes? Any advice? I have already looked at the book and the bakery
> > and have tried things but they have not worked, such as messing with
> > the variables in the index.php file.
>
> > I am using version 1.2
>
> > Thank you for any advice/pointers.
>
> > Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: