If you’re using CakePHP, you may want to install WordPress for your blog.

CakePHP rewrites and serves public files out of app/webroot/

So let’s assume that your domain is domain.com and you want your blog to be domain.com/blog/ then you’ll create a /blog/ folder inside app/webroot/ so you have app/webroot/blog/

Then go ahead and install WordPress files into the app/webroot/blog/ folder and inside that folder edit the existing .htaccess file or create a .htaccess file and put the following rewrite rules into it:

And that’s it, you’re set to go. There really isn’t anything tricky about it. You just need the correct rewrite base as shown above.

Shares