Mengalihkan semua URL saat migrasi ke domain baru

Cara mengalihkan otomatis domain lama ke domain baru dengan CloudFlare, contoh ke

If you plan to migrate to new domain, this article is for you. follow me the steps.


  • CloudFlare account.
  • Your domain allready on CloudFlare.


Go to the cloudflare dashboard and select your old domain.

Navigate to Rules > Redirect Rules.

Click on Create Rule button.

Input your Rule name (required), as example i will input movedomain

When incoming requests match… select All incoming requests

Then in URL redirect input this :

Expressionconcat(“”, http.request.uri.path)
Status code301

In Checkbox Preserve query string dont forget to tick it.

Verify redirect works with browse to your old domain name.

Dibangun dengan Hugo
Tema Stack dirancang oleh Jimmy