Tuesday, November 25, 2014

Re: display pure html page without layout


On Tuesday, November 25, 2014 8:56:37 PM UTC+7, Frank Hassani wrote:
tried it with staticpages as dir name, but same, it still loads the layout :O


Weird.

Can you compare your .htaccess files and compare it with .htaccess described in http://book.cakephp.org/2.0/en/installation/url-rewriting.html.

I suspect croogo 1.4.x did not have the following lines:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

Those lines should disable the rewrite to index.php if the directory or file exists.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: