redirect domain utama ke subdomain

  • Useful
  • 0
  • Unuseful

cara redirect domain ke sub domain pake cpanel niaga hoster gimana yak?

saya punya domain hamdanas.id, pengennya tiap buka domain ini entar di redirect ke blog.hamdanas.id or link lain misal intagram.com/username gitu bisa ga?

 

mohon pencerahan

Novice Asked on June 17, 2021 in Produk Niagahoster.
Add Comment
  • Useful
  • 0
  • Unuseful

Bisa melalui fitur redirect yang ada di cPanel, panduannya bisa cek ini https://www.niagahoster.co.id/blog/cara-redirect-domain-cpanel/

Forum Master Answered on June 17, 2021.
Add Comment
  • Useful
  • 0
  • Unuseful

Bisa menggunakan .htaccess untuk redirect-nya.

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^hamdanas.id [NC]
RewriteRule ^(.*)$ https://blog.hamdanas.id/$1 [L,R=301]
Novice Answered on October 28, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.