Issue with Custom Domain Redirect on InfinityFree Hosting

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!

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?

4 Likes

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.

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

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.

5 Likes

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.

6 Likes

Thanks migration Wordpress guide worked!

1 Like

Thanks!

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.

Glad to hear everything is working now!

The domain names in your post have been anonymized.

4 Likes

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