# Issue with Custom Domain Redirect on InfinityFree Hosting

**URL:** <https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981>\
**Category:** Hosting Support\
**Created:** [October 30, 2024, 2:43pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981 "2024-10-30T14:43:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannyDee](https://forum.infinityfree.com/letter_avatar/dannydee/32/5_5575768a8748004e209b776fc1b2916d.png) [@DannyDee](https://forum.infinityfree.com/u/DannyDee)\
**Post date:** [October 30, 2024, 2:43pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/1 "2024-10-30T14:43:25Z")

</div>

Hello everyone,

I’m having trouble with setting up my custom domain on InfinityFree. Here’s a summary of what I did:

1. I started with a free subdomain provided by InfinityFree.
2. I then added my custom domain as an alias to this free subdomain.
3. Additionally, I updated the nameservers for my custom domain in NameCheap to point to InfinityFree.

After waiting for the DNS caching to clear, I noticed that accessing my custom domain [HIDDEN].com would automatically redirect to the free subdomain www.HIDDEN].42web.io. I wanted to avoid this redirect, so I removed the free subdomain entirely.

Now, when I try to visit my custom domain, I receive a “suspended website” message.

Does anyone know how I can set up my custom domain on InfinityFree without it redirecting to the free subdomain and without seeing the suspension notice?

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![anon90933456](https://forum.infinityfree.com/letter_avatar/anon90933456/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon90933456](https://forum.infinityfree.com/u/anon90933456)\
**Post date:** [October 30, 2024, 2:48pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/2 "2024-10-30T14:48:26Z")

</div>

Hi and welcome to the forum!

Please don’t use AI to generate your post’s title and body, as AI tends to overcomplicate things a little too much for our tastes. Continued use of AI will get your posts flagged and deleted.

As for your problem, have you tried to change the website URL for WordPress by following this guide?

> **[Migrating WordPress – Advanced Administration Handbook | Developer.WordPress.org](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)**
>
> Changing The Site URL

---

<div class="post-metadata">

**Author:** ![EdwardSkunk](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/edwardskunk/32/66982_2.png) [@EdwardSkunk](https://forum.infinityfree.com/u/EdwardSkunk)\
**Post date:** [October 30, 2024, 3:37pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/3 "2024-10-30T15:37:28Z")

</div>

> [@DannyDee](#):
>
> I then added my custom domain as an alias to this free subdomain.

> [@DannyDee](#):
>
> After waiting for the DNS caching to clear, I noticed that accessing my custom domain [ontdekkingsgeest.com](http://ontdekkingsgeest.com) would automatically redirect to the free subdomain [www.ontdekking.42web.io](http://www.ontdekking.42web.io). I wanted to avoid this redirect, so I removed the free subdomain entirely.

Rather than having your custom domain be a redirect, the more optimal solution is to add it as an addon domain and then migrate your website to the new folder for that domain.

> [@How to add your own domain to your account](https://forum.infinityfree.com/docs?topic=49227):
>
> While a free subdomain is a great way to get started, a website looks a lot more professional with a custom domain name. Fortunately, you can register your own domain name with an external company (like [Spaceship](https://www.infinityfree.com/go/spaceship)) and use it on InfinityFree. Adding your domain name to your hosting account To add your domain name to your hosting account, you first need to have a hosting account. Even if you only want to host your own domain with us, you’ll first need to create a hosting account with a subdomain,…

> [@What does Subdomain / Addon Domain / Parked Domain mean](https://forum.infinityfree.com/docs?topic=49234):
>
> In the control panel, you’ll find the sections called Addon Domains, Parked Domains and Subdomains. What do all those different domain types mean? What is a subdomain? In general, a subdomain is a domain which is a part of another domain name. So if you have the domain name [example.com](http://example.com), then [test.example.com](http://test.example.com) would be a subdomain of [example.com](http://example.com). And similarly, [sub.test.example.com](http://sub.test.example.com) is a subdomain of both [example.com](http://example.com) and [test.example.com](http://test.example.com). In your control panel, the Subdomains section allows you t…

Then update the URL in your WordPress configuration as @JxstErg1 suggested.

> [@JxstErg1](#):
>
> As for your problem, have you tried to change the website URL for WordPress by following this guide?

> [@DannyDee](#):
>
> Now, when I try to visit my custom domain, I receive a “suspended website” message

That’s because you have the domain’s nameservers set to InfinityFree’s but it isn’t attached to an account, so the server doesn’t know where to send visitors. Once you add it as an addon domain it’ll work properly again.

> [@Why Your Domain Redirects to suspended-domain.net](https://forum.infinityfree.com/docs?topic=49236):
>
> Sometimes, your domain name may redirect to the website suspended-domain.net instead of showing your website. Contrary to what the domain implies, there are various reasons as to why your domain name may redirect to suspended-domain.net. In short: This happens if your browser is connecting to a website IP address, but there is no active website for your domain on the IP address. This article explains the different ways this can happen and how to fix each situation. What to Expect When Fixing …

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 30, 2024, 4:37pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/4 "2024-10-30T16:37:08Z")

</div>

The redirect wasn’t caused by how your domain was added to your account, but rather by your website code instead. WordPress always has one specific website URL configured, so if you try to access the same website with a different URL, WordPress will redirect you to the “right” URL.

To transfer your website to your new domain name, all you need to do is go back to your free subdomain, login to the WordPress admin interface and change the website URL to your own domain. When that’s done, your free subdomain will redirect to your new domain instead!

Adding the domain as an addon domain and moving the website also works, but is probably more complicated.

The suspension notice is just a side effect of deleting the domain name. To remove that page, all you need to do is add the domain to your account again.

---

<div class="post-metadata">

**Author:** ![DannyDee](https://forum.infinityfree.com/letter_avatar/dannydee/32/5_5575768a8748004e209b776fc1b2916d.png) [@DannyDee](https://forum.infinityfree.com/u/DannyDee)\
**Post date:** [October 31, 2024, 11:36am UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/5 "2024-10-31T11:36:00Z")

</div>

Thanks migration Wordpress guide worked!

---

<div class="post-metadata">

**Author:** ![DannyDee](https://forum.infinityfree.com/letter_avatar/dannydee/32/5_5575768a8748004e209b776fc1b2916d.png) [@DannyDee](https://forum.infinityfree.com/u/DannyDee)\
**Post date:** [October 31, 2024, 11:36am UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/6 "2024-10-31T11:36:31Z")

</div>

Thanks!

---

<div class="post-metadata">

**Author:** ![DannyDee](https://forum.infinityfree.com/letter_avatar/dannydee/32/5_5575768a8748004e209b776fc1b2916d.png) [@DannyDee](https://forum.infinityfree.com/u/DannyDee)\
**Post date:** [November 1, 2024, 12:25pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/7 "2024-11-01T12:25:19Z")

</div>

Thank you very much for the explanation and support! I followed the steps, and everything is now working perfectly.

If possible, could you also remove the link **ontdekkings…com** from my initial post? It’s now appearing in Google search results, and I would appreciate having it removed.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [November 1, 2024, 3:31pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/8 "2024-11-01T15:31:12Z")

</div>

Glad to hear everything is working now!

The domain names in your post have been anonymized.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [November 8, 2024, 3:32pm UTC](https://forum.infinityfree.com/t/issue-with-custom-domain-redirect-on-infinityfree-hosting/100981/9 "2024-11-08T15:32:00Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
