Wordpress into CakePHP : The right way !

Well, I’ve been using cakephp for like a year full time ! My boss, a couple of weeks ago, needed a site for his brand. So I used cake to do it. After that, he came to me with that idea of making a blog to post some businesses activities.
Well… everyone knows that Wordpress is the best Blog framework ever made ;).
So… he wanted the main blog adress to be like : http://www.example.com/blog/
My first idea was to put the wordpress folder into the webroot and rename it to blog. But after doing all that I realize that cake doesn’t keep the adress to http://www.example.com/blog/ but changes it to : http://www.example.com/app/webroot/blog/.

After a couple of hours of researches. I’ve came up with that solution.
Just open your main cakephp folder, inside it you should have a .htaccess file which is file that can configure various server option without having access to the php.ini file.
Just open that file and replace the content of it with those lines
RewriteEngine on
RedirectMatch temp ^/blog/wp-admin$ http://www.example.com/blog/wp-admin/
RewriteRule blog$ /blog/ [L]
RewriteRule blog/wp-admin$ /blog/wp-admin/ [L]
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]

..and here it goes for my case…
Talk Management System Blog
Hope that help!