How to Redirect a URL for a Domain

Summary:
DNS itself doesn’t perform redirects — but you can combine DNS and web server settings to redirect domain traffic.

Option 1: Use cPanel Redirect Tool

  1. Log in to cPanel.
  2. Go to Domains > Redirects.
  3. Select the domain to redirect.
  4. Enter the destination URL.
  5. Choose Permanent (301) or Temporary (302).
  6. Click Add.

Option 2: Use .htaccess File

If you're using Apache hosting:

Redirect 301 / https://newdomain.com/

Option 3: Use Cloudflare or DNS Host with Page Rules

Some DNS providers allow redirect rules via web UI (e.g., Cloudflare Page Rules).