Install a WordPress blog in CakePHP

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

1 Comment

  1. Nice! That’s the exact info I’m looking for.
    And it works! 😉
    Thanks.

Leave a Reply

Your email address will not be published.

*

© 2018 Contrid

Theme by Anders NorénUp ↑

Pin It on Pinterest

%d bloggers like this: