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?
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..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With