Wednesday , 27 August 2014
Home » PHP Framework » CakePHP » Integrate WordPress Blog into CakePHP Application
Integrate WordPress Blog into CakePHP Application

Integrate WordPress Blog into CakePHP Application

Hello Friends,

I have worked on CakePHP application like Customer Relationship Management (CRM),Content Management Systems(CMS),Online bidding application and many more. After working on CakePHP application, Our company's head decided to make organization's website into CakePHP and assigned the project to me. It has not great functionality. Its a simple CMS website. But the concern is to use WordPress Blog along with CakePHP application as it is used for posting some business news.

For integrating blog along with CakePHP application, you can simply install blog in /blog directory inside main CakePHP directory. Now you just need to write couple of .htaccess rules which i had written below. Please find .htaccess file in main CakePHP folder(root).

RedirectMatch temp ^/blog/wp-admin$ http://www.example.com/blog/wp-admin/
RewriteRule blog$ /blog/ [L] RewriteRule blog/wp-admin$ /blog/wp-admin/ [L]

 
If you find any problem in this than let me know by comment.

About Rakshit Patel

I am PHP Freelancer, Rakshit Patel AKA WordPress Freelancer working as PHP Programmer India. I am here to share all my developing knowledge, quick coding techniques, quick solutions to save your time and help you guys for any issue or bug fixing. If you have any PHP, WordPress, Magento related work, please contact me. I am interested for the work.

20 comments

  1. This is simple advice, but useful for beginners. Thanks

  2. This is simple advice, but useful for beginners. Thanks

  3. The article is about Customer Relationship Management (CRM),Content Management Systems(CMS),Online bidding application and many more.The post provides useful information about the topic

  4. The article is about Customer Relationship Management (CRM),Content Management Systems(CMS),Online bidding application and many more.The post provides useful information about the topic

  5. Hello all, I am working on a website in cakephp. My client recently asked me to integrate wordpress blog in cakephp. Although I have experience in cakephp but never worked with wordpress. So can u please tell me the steps required to integrate wordpress in cakephp. Thanks in Advance.

  6. Hello all, I am working on a website in cakephp. My client recently asked me to integrate wordpress blog in cakephp. Although I have experience in cakephp but never worked with wordpress. So can u please tell me the steps required to integrate wordpress in cakephp. Thanks in Advance.

  7. @Munish, i have already mention steps above. are you facing any problem while installing wordpress or redirection issues ?

  8. @Munish, i have already mention steps above. are you facing any problem while installing wordpress or redirection issues ?

  9. Hi there,

    i have tried to add your lines setting, but it seem not work. Here are my htaccess setting for main cakephp folder

    RewriteEngine on

    RedirectMatch temp ^/blog/wp-admin$ http://www.mysite.com/blog/wp-admin/
    RewriteRule blog$ /blog/ [L]
    RewriteRule blog/wp-admin$ /blog/wp-admin/ [L]

    RewriteBase /
    RewriteRule ^$ app/webroot/ [L]
    RewriteRule (.*) app/webroot/$1 [L]

    could you help me?

  10. Hi there,

    i have tried to add your lines setting, but it seem not work. Here are my htaccess setting for main cakephp folder

    RewriteEngine on

    RedirectMatch temp ^/blog/wp-admin$ http://www.mysite.com/blog/wp-admin/
    RewriteRule blog$ /blog/ [L]
    RewriteRule blog/wp-admin$ /blog/wp-admin/ [L]

    RewriteBase /
    RewriteRule ^$ app/webroot/ [L]
    RewriteRule (.*) app/webroot/$1 [L]

    could you help me?

  11. What it shows ?
    Is it redirecting to Internal Server Error ?

  12. What it shows ?
    Is it redirecting to Internal Server Error ?

  13. ya, it was directing to Internal Server Error. Do you have any idea?

  14. ya, it was directing to Internal Server Error. Do you have any idea?

  15. It an issue with htaccess rule. I cant predict with out looking at it. Ask to your seniors or any experience person who knows htaccess very well.

  16. It an issue with htaccess rule. I cant predict with out looking at it. Ask to your seniors or any experience person who knows htaccess very well.

  17. Pleasant Post. This record helped me in my college assignment. Thnaks Alot

  18. Is it redirect to internal server error?

  19. Yes, this is a great blog! I have often searched for a solution to get together cakephp and wordpress. Thank you very much!

  20. Hello, yeah this paragraph is genuinely fastidious and I have learned lot of
    things from it concerning blogging. thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>