Problem integrating Wordpress blog into CakePHP site

I was working on a Cakephp site that was successfully delivered. But recently, the Client again asked me to put a Wordpress blog on it to hide the Blogging item on his site. He wants to share authentication between Cakephp and WP.Weverever logs into his site, then logins in it, and if he clicks on the Blog tab, he should be redirected to the WP blog with a session that still exists. After some googling, I installed it in / app / webroot /, but I cannot edit the .htaccess file. Please help me in the right direction on how to share authentication between Cake Php and Wordpress, and the second is how to configure the .htaccess file so that the URL looks good. Thanks in advance..!

+3
source share
1 answer

Here is one way to do it. In CakePHP, you can have access to several databases. Why not configure the cake to access WP and use their login to the entire site? You can associate user information with an identifier in a WP database and associate it with content in a specific CakePHP database. Since you are using CakePHP, this should also be pretty simple.

+3
source

Source: https://habr.com/ru/post/1735905/


All Articles