My htaccess in webroot was:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
but looking at a 1.3 app on the same server (different subdomain) it
was
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
So i have used this and the app is working. Obviously not ideal to
be sticking bits of 1.3 into my 2.0 app to get it working. I don't
really understand the changes in the htaccess file - why the change?
is it a bug? Something wrong with the server setup?
thanks
will
On Sep 7, 8:09 am, "#2Will" <willjbar...@gmail.com> wrote:
> Sorry for confusion, yes thats right just an app, deployed in the
> simple cake way, whole thing up onto the one area (which happens to be
> a subdomain)
>
> its just /people/login for the login action
>
> On Sep 6, 5:44 pm, WebbedIT <p...@webbedit.co.uk> wrote:
>
>
>
>
>
>
>
> > No I think you're reading it right, but if it's a different app it's a
> > different app - a sub-domain is still a different domain when used in
> > that context.
>
> > If you want to have one central core you can go for the advanced
> > installation but if I read your post fully I can see I have been
> > thrown by your topic mentioning sub-domains (note to self: stop skim
> > reading people posts).
>
> > OK, so this has nothing to do with sub-domains, this is simply a
> > configuration issue on a different domain. Looks as thought
> > the .htaccess files are not doing their jobs correctly.
>
> > Do your other apps access the login at '/app/webroot/people/people/
> > login' or do they instead access '/people/login'?
>
> > HTH, Paul
> > @phpMagpie
>
> > On Sep 6, 12:29 am, "#2Will" <willjbar...@gmail.com> wrote:
>
> > > ok, thank you for replying.
>
> > > I think what they are talking about in that is when you want to be
> > > able to use different subdomains for different links etc?
>
> > > That shouldn't be necessary just to deploy the whole app to a
> > > subdomain should it? or am i reading that wrong?
>
> > > Thanks
>
> > > will
>
> > > On Sep 5, 9:59 pm, WebbedIT <p...@webbedit.co.uk> wrote:
>
> > > > Cake 2.0 beings some canges to the router to help with subdomains that
> > > > were touched on at CakeFest:http://book2.cakephp.org/en/appendices/new-features-in-cakephp-2-0.ht...
>
> > > > HTT, Paul
> > > > @phpMagpie
>
> > > > On Sep 5, 1:38 am, "#2Will" <willjbar...@gmail.com> wrote:
>
> > > > > comparing debug($_SERVER) between local and stage sites
>
> > > > > local: [PHP_SELF] => /app/webroot/index.php/people/login
> > > > > stage: [PHP_SELF] => /app/webroot/people/login
>
> > > > > This seems like a likely to be relevent, but what could be causing
> > > > > it? I think i have all my htaccess files present.
>
> > > > > Looking at other apps ive deployed to subdomain-stage , the PHP_SELF
> > > > > is /app/webroot/index.php without the /controller/action - but
> > > > > thats 1.3 apps.
>
> > > > > hmm. more digging.
>
> > > > > On Sep 5, 10:11 am, "#2Will" <willjbar...@gmail.com> wrote:
>
> > > > > > just running some debug statements looking at paths:
>
> > > > > > debug(ROOT);
> > > > > > debug(WWW_ROOT);
> > > > > > debug(WEBROOT_DIR);
> > > > > > debug(APP_DIR);
> > > > > > debug(APP_PATH);
> > > > > > gives me
>
> > > > > > /home/kindlem1/public_html/elip
> > > > > > /home/kindlem1/public_html/elip/app/webroot/
> > > > > > webroot
> > > > > > app
> > > > > > /home/kindlem1/public_html/elip/app/
>
> > > > > > Which i think looks as expected.
>
> > > > > > On Sep 5, 9:58 am, "#2Will" <willjbar...@gmail.com> wrote:
>
> > > > > > > Sorry, forgot to mention: i'm on 2.0 rc1
>
> > > > > > > On Sep 5, 9:56 am, "#2Will" <willjbar...@gmail.com> wrote:
>
> > > > > > > > Hello
>
> > > > > > > > I have deployed a little app to a subdomain as a stage environment -
> > > > > > > > iv'e done this before with 1.3 apps and not had to do anything special
> > > > > > > > to get it to work. The app works on my localhost
>
> > > > > > > > I'm getting errors where for example the login form now gives error
>
> > > > > > > > Error: The requested address '/app/webroot/people/people/login' was
> > > > > > > > not found on this server
>
> > > > > > > > and if i enable debug in config.php debug kit gives is broken, with
> > > > > > > > files missing because they are pointing to wrong addresses
>
> > > > > > > > eg: app/webroot/people/debug_kit/js/js_debug_toolbar.js
>
> > > > > > > > Is there something special i need to do for cakephp2 apps in
> > > > > > > > subdomains?
>
> > > > > > > > Thanks v much for any help,
>
> > > > > > > > will
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
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
No comments:
Post a Comment