Bagaimana Redirect Afiliasi WHMCS ke Domain Utama

Discussion in 'Domain Name' started by ujang_ym, 24 May 2014.

Thread Status:
Not open for further replies.
  1. ujang_ym

    ujang_ym Poster 2.0

    Messages:
    106
    Likes Received:
    7
    Trophy Points:
    18
    permisi para master ,
    saya mau tanya kalau mau redirect link afiliasi whmcs misalnya http://billing.domainutama.com/aff.php?aff=001
    mau di redirect ke domain utama misalnya domainutama.com. caranya bagaimana ya para master. makasih banyak :)
     
  2. Dika Haris

    Dika Haris Apprentice 1.0

    Messages:
    299
    Likes Received:
    25
    Trophy Points:
    28
    Sama Tuan, nae juga lagi nyari2 scriptnya.
    Siap cepat langsung posting ya. :D
     
    ujang_ym likes this.
  3. gonggo

    gonggo Poster 1.0

    Messages:
    53
    Likes Received:
    6
    Trophy Points:
    8
    kira2 gini

    Apache:
    Code:
    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^[0-9]+)$ http://billing.domainutama.com/aff.php?aff=$1 [L]
    </IfModule>
    nginx:
    Code:
    if (!-e $request_filename) {
    rewrite ^/([0-9]+)$ http://billing.domainutama.com/aff.php?aff=$1 break;
    }
    nanti jadi http://www.domainutama.com/001

    jangan lupa edit template whmcs nya
     
    ujang_ym likes this.
  4. Dika Haris

    Dika Haris Apprentice 1.0

    Messages:
    299
    Likes Received:
    25
    Trophy Points:
    28
    Oh, iya ya. kenapa ga kepikiran pakai .httacess. :D
    Thanks Tuan, saya coba-coba dulu neh.
     
    ujang_ym likes this.
  5. ujang_ym

    ujang_ym Poster 2.0

    Messages:
    106
    Likes Received:
    7
    Trophy Points:
    18
    saya sudah tambahkan kode tersebut ke htaccess.txt, lalu template whmcs yang harus diedit file nya apa saja ya Tuan? dan script apa yang harus dtambahkan ke file whmcs tersebut.:)
     
  6. ujang_ym

    ujang_ym Poster 2.0

    Messages:
    106
    Likes Received:
    7
    Trophy Points:
    18
    bagaimana Tuan sudah ke redirect belum, saya masih belum bisa ke redirect :D, file whmcs yg harus di edit apa aja ya Tuan?
     
  7. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,653
    Likes Received:
    755
    Trophy Points:
    113
    saya blm coba sich tp baca post Tuan yg diatas mungkin bs dicoba rename htaccess.txt nya ke .htaccess
     
    ujang_ym likes this.
  8. ujang_ym

    ujang_ym Poster 2.0

    Messages:
    106
    Likes Received:
    7
    Trophy Points:
    18
    sudah saya rename htaccess.txt tapi tdk bisa munculnya seperti ini
    [​IMG]
     
  9. pluto01

    pluto01 Hosting Guru Web Hosting

    Messages:
    3,653
    Likes Received:
    755
    Trophy Points:
    113
    berarti sudah ada file .htaccessnya itu bos mungkin ga kelihatan coba di show hiden saja saat masuk ke file managernya jd editnya di sana saja jgn yg di htaccess.txtnya
     
    ujang_ym likes this.
  10. ujang_ym

    ujang_ym Poster 2.0

    Messages:
    106
    Likes Received:
    7
    Trophy Points:
    18
    iya mas saya sudah show hidden dan sudah tambahkan scriptnya di .htaccess tapi malah internal server error, kemudian setelah saya hapus kembali scriptnya websitenya normal kembali. kalau seperti itu masalahnya dimana ya mas?
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...