Bisnis Via Pos, Sumber Kekayaan Sejati dari Internet, Klik disini, Lihat rahasia nya
Powered by MaxBlogPress 

Membuat multi website menggunakan subdomain dan cms wordpress

Ada beberapa kelebihan membuat multi website melalui subdomain, diantaranya adalah :

1. Google sebagai search engine utama, memberlakukan subdomain berdiri sendiri sebagai entitas berbeda, sehingga sebuah situs dengan subdomain merupakan bangunan tersendiri dan mandiri.
2. Dengan subdomain, ini akan bisa meningkatkan perankingan domain utama, ataupun sebaliknya, melalui domain utama yang telah cukup dikenal, dengan sendirinya subdomain akan mudah dalam meraih perankingan di mesin pencari.
3. Dengan diberlakukannya subdomain sebagai entitas tersendiri, maka membangun out dan in bound link bisa dilakukan dengan mudah oleh pemilik domain.
4. Dengan subdomain, berarti kita tidak perlu mendaftarkan domain baru atau cukup menambahkan pada domain utama yang telah dimiliki. Ini tentunya akan menghemat biaya. Bahkan saat ini, sebuah domain utama diberi kebebasan untuk membuat 1000 sub domain.

Ada beberapa pertimbangan menggunakan wordpress sebagai multi site, diantaranya :

1. Disamping populer juga dikenal sebagai cms yang cukup ringan dan sederhana.
2. Dengan hanya memakai sebuah engine wordpress, berarti juga menghemat storage pada hosting.
3. Untuk keperluan aksesories seperti theme dan plugin, cukup sekali upload pada tempat yang sama, dan bisa digunakan secara sharing untuk setiap domain.
4. Untuk proses upgrade kita hanya sekali mengupload file-file yang dibutuhkan. Setelah itu proses instalasi upgrade bisa dilakukan untuk setiap subdomain.

Untuk memasang wordpress sebagai multi site ke banyak subdomain yang dibutuhkan hanyalah merubah file wp-config.php menjadi seperti berikut :

< ?php
// ** MySQL settings ** //

if ($_SERVER['HTTP_HOST']=="DomainAnda.com") {

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase. You won't have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

} elseif ($_SERVER['HTTP_HOST']=="subdomain.DomainAnda.com") {

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase. You won't have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

} else {

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase. You won't have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

}

/* That's all, stop editing! Happy blogging. */

if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
?>

Bagi yang memiliki keterbatasan akses untuk database, bisa juga menggunakan hanya sebuah database yang di pakai bersama-sama untuk semua subdomain dengan cara menentukan table_prefix secara khusus, misalnya $table_prefix = ’sub1wp_’; untuk subdomain 1
$table_prefix = ’sub2wp_’; untuk subdomain2 dan seterusnya.

langkahnya simpel aja kok, tinggal replace wp-config.php yang ada dengan wp-config.php yang dah dimodif.

yang perlu diperhatikan hanya nama domain/sub domain sama table prefix-nya aja. sebagai gambaran saya repost wp-gonfig.php yang saya kasih tebal disesuaikan dengan nama domain atau sub domain yang dipakai.

< ?php
// ** MySQL settings ** //

if ($_SERVER['HTTP_HOST']=="DomainAnda.com") {

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase. You won't have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'mainwp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

} elseif ($_SERVER['HTTP_HOST']=="subdomain1.DomainAnda.com") {

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase. You won't have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'sub1wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

} elseif ($_SERVER['HTTP_HOST']=="subdomain2.DomainAnda.com") {

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase. You won't have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'sub2wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

} else {

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change each KEY to a different unique phrase. You won't have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define('AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('SECURE_AUTH_KEY', 'put your unique phrase here'); // Change this to a unique phrase.
define('LOGGED_IN_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

}

/* That's all, stop editing! Happy blogging. */

if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
require_once(ABSPATH . 'wp-settings.php');
?>

semoga bermanfaat, jika anda sudah punya pengalaman yang lebih perihal ini, silahkan diskusikan disini.

Share

Banyak yang datang kesini mencari produk ini dengan kata kunci:

Tags: , , , , , , , , , , , , , , , , , , , , , , , , ,

19 CommentsLeave a comment »
  • 20/08/2009
    cahkuli said:

    makasih tutonya
    mau coba tp masih takut
    pengennya sih buat subdomain jg
    buat member cahkuli
    tp apakah feed ama wp

  • 25/08/2009
    admin said:

    coba aja , bisa kok. jangan ragu.

  • 18/01/2010
    Jeri said:

    Untuk satu subdomain, satu modul software WP Ya Mas ?
    Butuh space hosting besar dong.

  • 13/02/2010
    gerobag said:

    mas aku tu nubie aduh pengen belajar ga ada panduanya langsung begitu mana aku paham gan…bisa ga yg dari awal

  • 15/02/2010
    admin said:

    panduannya biasanya di sertakan di dalam script nya, mulai dari panduan penggunaan hingga installasi nya,

  • 24/02/2010
    admin said:

    kalau mau hemat, pakai script WP MU aja, silahkan download di wordpress mu, tanya mbah google.

    thanks.

  • 01/03/2010
    guna said:

    “Untuk memasang wordpress sebagai multi site ke banyak subdomain yang dibutuhkan hanyalah merubah file wp-config.php menjadi seperti berikut :”

    setelah setting wp-config.php lalu bagaimana? saya mau instal ke subdomain gimana caranya spy s ngelink?

  • 29/04/2010
    Alphonso Fial said:

    Adwords is really good in driving traffic to your website. however, they are very strict right now and they would not easily approve websites that they thought have low quality content. |

  • 17/05/2010
    Austin Cook said:

    i have just signed up with the amazon affiliate program and i am still not earning a good deal of cash from them.`..

  • 18/05/2010
    Farraha.Net said:

    you can optimized your website seo, that will convert your visitor to your buyer.

  • 20/06/2010
    Ivan Syba said:

    Nah masih bingung banget sama wp-config multi site ini.

    Apakah kita buat subdomain secara manual. kalau WordPress MU kan bisa langsung daftar dari domain utama

    cara setting $table_prefix :
    table_prefix secara khusus, misalnya $table_prefix = ’sub1wp_’; untuk subdomain 1
    $table_prefix = ’sub2wp_’; untuk subdomain2 dan seterusnya.

    Apakah tabel diatas digunakan setalah kita membuat subdomain di cpanel dulu.

    Saya telah coba mereplace wp-config di blog saya tapi kok malah blog error dan hanya menampilkan deretan kode di wp-config.php apa ada yang salah.

  • 10/07/2010
    Sebastian Hussain said:

    anybody knows how i could get my banned Adwords account back?.-*

  • 12/07/2010
    Farraha.Net said:

    you can contact google, give reason what you do with your account.

  • 13/07/2010
    Farraha.Net said:

    untuk sub domain, nanti akan tercipta sendiri ketika anda register. tidak perlu buat secara manual, ini lah kelebihan dari wp Mu.

  • 10/08/2010
    forex said:

    thx gan infonya lengkap sekali.

  • 17/10/2010
    blogoholic.web.id said:

    kalau saya buat subdomain terus di host di blogspot, biar nambah ilmunya gak cuma bisa di wordpress tapi juga di blogspot. kalau buat subdomain di satu hasting saya gak kebayang butuh berapa space dan bandwidthnya secara saya ini masih mahasiswa yang belum punya penghasilan tetap, coz biaya sewa hosting dan domain harus nabung.

  • 08/11/2010
    Farraha.Net said:

    blogoholic.web.id :

    bisa di akali kok, anda beli saja hosting yang murah, kemudian buat subdomain nya di DNZ zone setting nya,

    maksud nya, anda buat blog di blogspot sebanyak banyaknya, kemudian anda pakai domain asli dengan cara membuat subdomain di dns zone nya, maka anda hanya perlu satu domain dan hosting saja, tapi anda bisa memiliki website sebanyak yang anda mau, oke??

    semoga penjelasan ini membantu.

  • 04/12/2010
    Gel Fuel said:

    so far the best affiliate program for me is Amazon Affiliate. they have high tier rates and great payout “*.

  • 08/02/2011
    ilhamzar said:

    waduh tutorialnya sesat……………..
    error data base

Leave a Reply:Get a Gravatar

* Name

* Email Address

Website Address

Cari Artikel Disini
Chat with Me
Infomasi
eXTReMe Tracker