انتقل إلى المحتوى

الدروس النطاقات مبتدئ1 دقائق قراءة

How to Redirect a Domain to Another Website

Forward one domain to another with a proper 301 redirect — in cPanel, with .htaccess, or for extra domains you own — keeping paths and HTTPS intact.

بواسطة فريق تحرير ZSOLNET آخر تحديث

هذه الصفحة غير متاحة بالعربية بعد، لذا تُعرض بالإنجليزية.

أهم النقاط

  • Use 301 for permanent redirects so search engines follow them.
  • Keep paths when redirecting so deep links still work.
  • Redirected domains still need SSL to avoid certificate warnings.

Redirecting a domain sends anyone who visits it to another address. It’s useful for typo domains, old brand names and country domains that should all lead to one site.

Use a 301 for permanent moves

A 301 tells browsers and search engines the move is permanent, so they update bookmarks and pass ranking signals to the new address. Use a 302 only for genuinely temporary redirects.

Option 1: cPanel Redirects

  1. Make sure the domain is added to your hosting account (as an addon or alias domain).
  2. Open Domains → Redirects.
  3. Choose Permanent (301), select the domain, and enter the destination URL.
  4. Choose Redirect with or without www, and enable Wild Card Redirect if you want /any/path to go to the same path on the new site.

Option 2: .htaccess

In the document root of the old domain:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?old-example\.com$ [NC]
RewriteRule ^(.*)$ https://new-example.com/$1 [R=301,L]

This keeps the path, so old-example.com/pricing goes to new-example.com/pricing.

Don’t forget HTTPS

A redirect from https://old-example.com only works if the old domain also has a valid SSL certificate — otherwise visitors see a certificate warning before the redirect happens. Keep AutoSSL covering redirected domains.

Check the result with a redirect checker: you want a single 301 hop to the final URL.

شارك X LinkedIn Facebook

الدخول إلى حسابك

أدِر نطاقاتك واستضافتك وفواتيرك من مكان واحد.

اتصال آمن مباشرة مع منطقة العملاء في ZSOLNET.

ليس لديك حساب؟