[ASK] Cara Redirect Domain tapi untuk Postingan Tidak Berlaku?

Discussion in 'WordPress' started by Dam Blue, Feb 27, 2017.

  1. Dam Blue

    Dam Blue New Member

    Joined:
    Dec 27, 2014
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Hallo Pagi,

    Mau nanya nih pak...
    saya punya 2 domain domain A dan domain B
    nah saya mau direct domain B ke domain A tapi hanya jika mengunjungi domain B otomatis ke domain A tapi tidak berlaku untuk postingan,
    misalkan kita mengunjungi domain B dengan postingan >> domain.b/cara-direct.html
    ini tetap ke postingan domain B tapi ketika mengunjungi domain.b maka redirect ke domain.a
    gimana ya nerapinnya seperti contoh diatas?
    saya menggunakan VPS dan Serverpilot, serverpilot web servernya pake nginx.

    Thanks sebelumnya.
     
  2. ncang

    ncang Super Level

    Joined:
    Feb 7, 2013
    Messages:
    4,653
    Likes Received:
    761
    Trophy Points:
    113
    Google+:
    kenapa hanya untuk domain saja /sebagian ? @Dam Blue
    umumnya redirect digunakan karena pindah domain atau redirect halaman lama ke halaman baru.
    sepertinya susah apalagi rulesnya nginx :D
    ditunggu saja, mungkin nanti dibawah ada yg bisa jawab
     
  3. NieeLz

    NieeLz Well-Known Member

    Joined:
    Aug 24, 2015
    Messages:
    1,790
    Likes Received:
    127
    Trophy Points:
    63
    Google+:
    pake trik kaya subdomain di cpanel mungkin
     
  4. arief munandar

    arief munandar Active Member

    Joined:
    May 31, 2015
    Messages:
    705
    Likes Received:
    110
    Trophy Points:
    43
    Redirect 301 *keren1*tapi rumusnya saya lupa *berkeringat*
     
  5. KangAndre

    KangAndre Member

    Joined:
    Jan 25, 2014
    Messages:
    10,251
    Likes Received:
    2,716
    Trophy Points:
    413
    Kalau pakai wordpress, gunakan plugin redirect 301 dan pilih artikel tertentu yang di-redirect
     
  6. girilaya

    girilaya Member

    Joined:
    Apr 28, 2017
    Messages:
    20
    Likes Received:
    3
    Trophy Points:
    8
    dikasih script redirect di homepagenya mas ... jangan di header atw footer yang notabene juga akan diakses oleh single page
     
Loading...

Share This Page