Connaxis Creative Outsourcing - Stay Competitive - Outsource Web Design to Argentina

Home » Blog
Blog
lang_btn lang_btn

CakePHP: Just baked: Guerra Creativa | Web Design and Logo Contest

Added by: 30 August 2009 . 16:08

Dear Cake fans:

We can proudly announce our freshly baked site: http://www.guerra-creativa.com
(Still Alpha, but already 948 users!)

"Guerra Creativa is a community platform for the creative. We provide
you the battlefield and weaponry to conquer the creative world.
Through web design and logo contests, creative soldiers have the
opportunity to battle their enemies for monetary prizes! "

I always were looking for good Cake-driven sites and I hope you do so too.

CakePHP: Using mod_rewrite without .htaccess overhead

Added by: 19 July 2009 . 16:07

A quick solution for all of you who want to disable .htaccess files on their server but still use mod_rewrite with CakePHP:

<Directory /var/www/mysite>
AllowOverride None
Options FollowSymLinks
RewriteEngine on
RewriteRule  ^$ /app/webroot/ [L]
RewriteCond %{REQUEST_URI} !^/app/webroot.*
RewriteRule ^(.*)$ /app/webroot/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^app/webroot(.*)$ /app/webroot/index.php?url=$1 [QSA,L]
</Directory> 

If .htaccess files are enabled (e.g. AllowOverride All) apache needs to check the directory path for ".htaccess" files on EVERY request. This means a significant overhead for high-traffic sites as traversing the directory path and opening the ".htaccess" files are not for free.

Using SWFUpload with HTTP Auth

Added by: 11 July 2009 . 19:07

Sadly the SWFUpload (swfupload.org) does not work with HTTP Authentication. A solution would be to disable HTTP Authentication for the upload_url, e.g.

Page: 1