1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

[ASK] Multisite Wordpress + Multidomain

Discussion in 'Wordpress' started by cakkavati, Apr 11, 2012.

  1. cakkavati

    cakkavati Hero

    Joined:
    Jul 21, 2008
    Messages:
    573
    Likes Received:
    2
    Location:
    www.SentraBelanja.com
    Bro/Sis,

    saya mau buat wordpress yang multisite namun bukan menggunakan subdomain melainkan multi domain
    jadi untuk 1 file wordpress ada beberapa domain berbeda dengan isi content yang berbeda (seperti drupal)
    apakah wordpress memungkinkan melakukan hal ini ?
    ada yang bisa memberikan petunjuk ?

    saya sudah search di google untuk kasus seperti ini, tapi saya belum dapat info nya yang membahas proses nya jika di shared hosting
    mohon petunjuk

    terima kasih
     
  2. travianku

    travianku Newbie

    Joined:
    Apr 11, 2012
    Messages:
    12
    Likes Received:
    0
    maksudnya gimana ini?
    kurang jelas
    siapa tahu bisa membantu :)
     
  3. gigiharif

    gigiharif Super Hero

    Joined:
    Dec 3, 2009
    Messages:
    1,630
    Likes Received:
    116
    Location:
    Batang
    coba wp-config.php diganti dengan code ini (jangan lupa backup dulu ya,,,)

    Code:
    <?php
    /* Determining the domain  - DO NOT EDIT */
    
    $host = $HTTP_HOST;
    $parts = explode('.',$host);
    if ($parts[3] = "") {
        $domain = $parts[0];
    } else {
    
        $domain = $parts[1];
    }
    /* Domain - Edit below. Add more "cases" for each domain you want to have.
       Make sure each "case" has a "break; line at the end.                */
    
    switch ($domain) {
      case "domain1":		// "domain" in "www.domain.com"
        $db = "database1";		// the database for this domain
        $user = "username1";	// the username for this database
        $password = "pass1";	// the password for this database
        $hostname = "localhost";	// 99% chance you won't need to change this value
        $table_prefix  = 'wp_';	// change for multiple installations in one database
        $wplang = '';		// change to localize wordpress (must have an MO file in wp-includes/languages)
        break;
    
      case "domain2":		// "domain" in "www.domain.com"
        $db = "database2";		// the database for this domain
        $user = "username2";	// the username for this database
        $password = "pass2";	// the password for this database
        $hostname = "localhost";	// 99% chance you won't need to change this value
        $table_prefix  = 'wp_';	// change for multiple installations in one database
        $wplang = '';		// change to localize wordpress (must have an MO file in wp-includes/languages)
        break;
    }
    
    /* That's all, stop editing! Happy multi-blogging. */
    
    define('DB_NAME', $db);
    define('DB_USER', $user);
    define('DB_PASSWORD', $password);
    define('DB_HOST', $hostname);
    
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
    define ('WPLANG', $wplang);
    
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    
    ?>
    saya belum pernah nyoba, tuh dapat dari forum wordpress

    Update :

    Sorry, yang diatas untuk konten sama. Kalau untuk konten yang berbeda, pake multi site yang bagian domain mapping kan bisa. sorry lagi, saya lupa fitur domain mapping itu default atau musti nambahin :swt2:
     
  4. coyser

    coyser Hero

    Joined:
    Mar 12, 2010
    Messages:
    514
    Likes Received:
    3
    dulu pake wp multi pernah di setingin ama member sini juga , id nya sh0ck , cb tanya aja bro , siapa tau bisa
     
  5. teguhaditya

    teguhaditya Super Hero

    Joined:
    Jan 23, 2008
    Messages:
    7,503
    Likes Received:
    1,418
    Location:
    _ ▂ ▃ ▅ ▆ █
    di cpanel domainnya di setting park domain, di wp nya tinggal di add via domain mapping.
     
  6. cakkavati

    cakkavati Hero

    Joined:
    Jul 21, 2008
    Messages:
    573
    Likes Received:
    2
    Location:
    www.SentraBelanja.com
    thanks info nya bro, akan saya coba

    ok, saya coba cek

    thanks bro :)
     
  7. Xemulator

    Xemulator Ads.id Fan

    Joined:
    Sep 23, 2010
    Messages:
    227
    Likes Received:
    4
    bisa om, kalo udah setup multisite tinggal ditambahin plugin domain mapping ada di repository wp, gratis
     

Share This Page