Integrate WordPress Blog into CakePHP Application

cakephp-freelancer-developer

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 on Integrate WordPress Blog into CakePHP Application

  • Hire PHP programmer
    June 17, 2010 at 1:06 pm

    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

  • Hire PHP programmer
    June 17, 2010 at 6:36 pm

    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

  • Munish Sharma
    July 14, 2010 at 1:33 pm

    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.

  • Munish Sharma
    July 14, 2010 at 7:03 pm

    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.

  • Rakshit Patel
    July 15, 2010 at 4:37 am

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

  • Rakshit Patel
    July 15, 2010 at 10:07 am

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

  • Bali Web Design
    July 20, 2010 at 9:10 am

    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?

  • Bali Web Design
    July 20, 2010 at 2:40 pm

    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?

  • Rakshit Patel
    July 20, 2010 at 3:34 pm

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

  • Rakshit Patel
    July 20, 2010 at 9:04 pm

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

  • Bali Web Design
    July 21, 2010 at 2:45 am

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

  • Bali Web Design
    July 21, 2010 at 8:15 am

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

  • Rakshit Patel
    July 21, 2010 at 5:45 am

    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.

  • Rakshit Patel
    July 21, 2010 at 11:15 am

    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.

  • Zoommaguero
    July 6, 2011 at 3:56 pm

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

  • translation jobs
    January 27, 2012 at 11:59 am

    Is it redirect to internal server error?

  • Ivo Wolgensinger
    August 6, 2012 at 11:40 pm

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

  • pozycjonowanie
    February 3, 2014 at 2:48 am

    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 *

Sponsors

Sponsors

Recommended

DHgate Computers
DHgate.com - Computers, Cell Phones & more
  • We find everbuying built in php and use css to control the style.

About Author

PHP Freelancer

PHP Freelancer I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I am here to share all my developing knowledge with you people. For Hire PHP Developer India, contact me.
Follow on twitter: @raxit4u2

Get Free Programming Tutorials:

Become a Fan

Popular Topics

Recent Posts

Most Popular

Recent Comments

Get a Free Quote
$
$
$
Security Question: 3 + 8 = ?
$
 
Listing all pages