Tuesday, December 11, 2012

RE: Un-related models / functions

Running nGinx on Ubuntu. No htaccess files used on nGinx.

In my sites-available conf:

if (!-e $request_filename) {
rewrite ^/(.+)$ /index.php?url=$1 last;
break;
}

So remove the ?url=$1 or ?url=$1 last ?

Thanks,

Dave
-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of lowpass
Sent: Tuesday, December 11, 2012 3:09 PM
To: cake-php@googlegroups.com
Subject: Re: Un-related models / functions

On Mon, Dec 10, 2012 at 2:50 PM, Advantage+ <movepixels@gmail.com> wrote:
>
> Forbidden
>
> Error: The requested address
> '/products/feature?url=products%2Ffeature' was not found on this server.

Cake throws a 404 on internal errors when debug = 0. Set debug to 2 to see
what the problem is.

> And whats with the crazy url?

It looks like you're running 2.x with 1.x mod_rewrite rules. Update your
webserver config or .htaccess, whichever you're using. Remove the "?url=$1"
part.

--
Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter
http://twitter.com/CakePHP

---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.



--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.

No comments: