• kthakkar

    (@kthakkar)


    I have Integrate WordPress into CakePHP and its working fine. now I want to Integrate multisite WordPress into CakePHP and that’s creating some problem for me.

    I have two site(multisite wordpres) like:

    1)http://yoursite.com/blog

    2)http://yoursite.com/blog/help

    for that I have set wp-config.php:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/app/webroot/blog/';
    define( 'DOMAIN_CURRENT_SITE', 'yoursite.com' );
    define( 'PATH_CURRENT_SITE', '/app/webroot/blog/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    and .htaccess

    RewriteEngine On
    RewriteBase /app/webroot/news/
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    So here first one working fine but getting problem with second one. any idea please!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Integrate multisite WordPress into CakePHP’ is closed to new replies.