Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Wordpress with Cakephp?

For my website, i want to use a CMS. I felt WordPress is having more features and provides lots of plugins to make our website best. But the problem i am facing is.., how can i use Word Press with Cakephp framework?

like image 706
Kavya B R Avatar asked Jun 07 '13 05:06

Kavya B R


1 Answers

  • Now, the first thing is if you want to integrate WordPress in CakePHP, you have to put that in app/webroot folder. So, put WordPress folder into app/webroot of your CakePHP.

  • But cake doesn’t keep the address to http://www.example.com/blog/. It changes address to http://www.example.com/app/webroot/blog/.

  • Now open .htaccess file from your CakePHP root directory and replace the content with following lines.

 RewriteEngine on

 RedirectMatch temp ^/blog/wp-admin$ http://www.example.com/blog/

 RewriteRule ^blog$ blog/ [L]

 RewriteRule ^blog/wp-admin$ blog/wp-admin/ [L]

 RewriteRule ^$ app/webroot/    [L]

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

Please try this.. may be it will helpful for you..

like image 181
ARJUN KP Avatar answered Nov 27 '22 13:11

ARJUN KP