How do I set up a URL redirect for a domain?

You can set up a URL redirect to forward your domain (e.g., http://yourdomain.tld) or subdomain (e.g., http://any.yourdomain.tld) to any destination page of your choice. Usually, when you set up a URL redirect for a domain, it takes 30 minutes to take effect. Visit this page to check all available redirect types.

It is possible to set up a URL redirect from Namecheap's side for domains that are using our BasicDNS, BackupDNS, PremiumDNS or FreeDNS.

To set up a URL redirect, follow these steps:

(1) Sign into your Namecheap account (The "Sign In" option is available in the top hat of the page):



(2) Select Domain List from the left side menu and (3) click the Manage button next to your domain:



(4) Navigate to the Advanced DNS tab and (5) click the Add New Record button (not able to edit Host Records?) in the Host Records section:



(6) Select URL Redirect Record from the drop-down menu for Type, put your desired host to be forwarded to the Host line and enter the URL you would like to redirect to into the Value line:



More details on hosts you can use can be found in the "How do I create a subdomain for my domain?" article.

Let's say you need to forward your www.yourdomain.tld to https://someurl.tld. In this case the host to be putted to the Host field would be "www":



(7) Click on the Save All Changes button each time you need to save the record:



(8) Please also check if there are any URL Redirect (Unmasked/Masked/Permanent), A or CNAME records set for the same Host. Such records can conflict with each other, thus, they are to be removed.

Here is an example of such conflicting records:





Redirect a domain/subdomain to a specific page on a website and pass values via query strings (for domains pointed to our BasicDNS only)

You can also use URL Redirect to forward users to a specific page at the destination URL and pass values via query strings to the destination. It is important to note that the value in the Destination URL affects where and how the URL is redirected.

Host name

Destination URL

Redirect type
www1 http://destination.com Unmasked / Masked or Permanent (301)
www2 http://destination.com/ Unmasked / Masked or Permanent (301)
www3 http://destination.com?1=2 Unmasked / Masked or Permanent (301)
www4 http://destination.com/page?c=d Unmasked / Masked or Permanent (301)


In the first case, www1.yourdomain.com will not pass values to the destination URL, so www1.yourdomain.tld/xyz.html will redirect users to http://destination.com only.

In the second case, www2.yourdomain.tld/xyz.html will redirect users to http://destination.com/xyz.html (pay attention to the / in the configuration).

In the third case, www3 combines query string values (if any) and passes them to the destination URL. For example: www3.yourdomain.tld/something?a=b will redirect users to http://destination.com/something?a=b&1=2

In the fourth case, www4.yourdomain.tld/example?a=b will redirect users to http://destination.com/example/page?c=d&a=b

That's it!

If you have any questions, feel free to contact our Support Team.

Comments

We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close