Subdomain points to main domain, not the landing page

Hey everyone!

What’s up?

I got an issue with Vercel which Lovable wasn’t able to solve.

I wanted a landing page I built (the landing page stems from the appenue-ai.com website) to be redirected to mvp.appenue-ai.com; for some reason, when I type mvp.appenue-ai.com, I reach the appenue-ai.com website instead of the landing page.

I added the subdomain in the domains, added the “mvp” CNAME cname.vercel-dns.com in the DNS list, but nothing - the only thing I see is the Appenue-ai.com website on that subdomain.

I also followed both ChatGPT’s as well as Vercel’s AI suggestions regarding the vercel.json file, but to no avail.

Any idea?

Hey @appenueai,

Welcome to the Vercel community!

Thank you for providing the detailed information. Before I jump into a solution, I wanted to let you know that I currently cannot access the site mvp.appenue-ai.com, as shown in the screenshot below. Additionally, appenue-ai.com is stuck on the landing page, and I’m not sure what issues you might be experiencing.

Could you please share the DNS records? This will help me understand which domain is configured to use which settings.

I look forward to hearing back from you.

Best regards,
Chintan
[chintan.com]

1 Like

Thanks for the prompt reply.

I checked the main domain, seems to work fine (checked it in incognito mode both on desktop as well as mobile).

Now it says “invalid configuration” instead of “DNS Change Recommended” (I changed the mvp CNAME to A record, as per Lovable’s recommendations for setting up the subdomain again as it didn’t work yesterday).

Here is the current set up (DNS records):

Current DNS Records

Name Type Value TTL Priority Age Comment
mvp A 185.158.133.1 60 1h
www CNAME appenue-ai.com. 60 2d
default._domainkey TXT v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0IJwG+XriPjiCI+KGmQnpV5kBv4qNhII7JCKws4Ag0OmSAxM6jDvGV39rYDpFr2fE8nGgyaUagWGBtgdb3GpxVLWGPKPZH9i3791m4u6LWJn8BujwMSyNLjFRpZIqR6WJ1JYbiww4pUQRsRzvX08zv9sn6ATbP52oPdtZ+hYGAVTX+TrSiHdWZP4QM+t03tW1Zyzzxb5UX9fdacJ6Z8BxcYNDVX/1BMnfguwKioxDhDQgaGDMo3muPWX5KzcCEh2x7xz0oWWG+sHdMtGngf5dpaJKqvpWuxXDMmaZZzL+pO0oVAf09CqeOIW0Wjf5SOGQyFO/+hlNOb3tenQ085kGQIDAQAB; 60 Jun 6
_dmarc TXT v=DMARC1; p=none; 60 Jun 6
TXT v=spf1 +mx +a +ip4:192.64.117.203 +include:spf.web-hosting.com ~all 60 Jun 6
MX mx3-hosting.jellyfish.systems. 60 20 Jun 6
MX mx2-hosting.jellyfish.systems. 60 10 Jun 6 For email hosting
MX mx1-hosting.jellyfish.systems. 60 5 Jun 6 Setting up email hosting
* ALIAS cname.vercel-dns-017.com. 60 May 21 Vercel automatically manages this record. It may change without notice.
ALIAS d0c2cedb795ba7d8.vercel-dns-017.com 60 May 21 Vercel automatically manages this record. It may change without notice.
CAA 0 issue “letsencrypt.org 60 May 21

Hi @appenueai ,

Thank you for your response.

I understand the challenges you’re facing. Let me clarify the steps you need to follow when working with a domain and its subdomains. Please use the following DNS records:

  1. For the main domain, create an A Record: xxx.xxx.xx.x (e.g., chintansudani.com).
  2. For the “www” subdomain, create a CNAME record: xx.vercel-dns-017.com (e.g., www.chintansudani.com).
  3. For any additional subdomains, use the same CNAME record: xx.vercel-dns-017.com (e.g., blog.chintansudani.com).

I hope this example provides you with a clearer understanding of how it works.

Best,
Chintan
[chintan.com]

1 Like

I set up as you said, but what happens now is that the main domain (i.e. appenue-ai.com) is redirected to mvp.appenue-ai.com instead of the landing page.

The landing page can be seen here - Appenue AI - AI-Driven Growth & Business Transformation Services | Market Entry | Change Management

What I added in the domains (which is now valid) is mvp.appenue-ai.com, set to “Production” with

mvp CNAME appenue-ai.com. 60

Can you share all the updated records listing now? @appenueai

I hope you removed “*” record already, its not required anymore.

1 Like

These are the current records:

Current DNS Records

Name Type Value TTL Priority Age Comment
mvp CNAME appenue-ai.com. 60 21m
www CNAME appenue-ai.com. 60 2d
default._domainkey TXT v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0IJwG+XriPjiCI+KGmQnpV5kBv4qNhII7JCKws4Ag0OmSAxM6jDvGV39rYDpFr2fE8nGgyaUagWGBtgdb3GpxVLWGPKPZH9i3791m4u6LWJn8BujwMSyNLjFRpZIqR6WJ1JYbiww4pUQRsRzvX08zv9sn6ATbP52oPdtZ+hYGAVTX+TrSiHdWZP4QM+t03tW1Zyzzxb5UX9fdacJ6Z8BxcYNDVX/1BMnfguwKioxDhDQgaGDMo3muPWX5KzcCEh2x7xz0oWWG+sHdMtGngf5dpaJKqvpWuxXDMmaZZzL+pO0oVAf09CqeOIW0Wjf5SOGQyFO/+hlNOb3tenQ085kGQIDAQAB; 60 Jun 6
_dmarc TXT v=DMARC1; p=none; 60 Jun 6
TXT v=spf1 +mx +a +ip4:192.64.117.203 +include:spf.web-hosting.com ~all 60 Jun 6
MX mx3-hosting.jellyfish.systems. 60 20 Jun 6
MX mx2-hosting.jellyfish.systems. 60 10 Jun 6 For email hosting
MX mx1-hosting.jellyfish.systems. 60 5 Jun 6 Setting up email hosting
* ALIAS cname.vercel-dns-017.com. 60 May 21 Vercel automatically manages this record. It may change without notice.
ALIAS d0c2cedb795ba7d8.vercel-dns-017.com 60 May 21 Vercel automatically manages this record. It may change without notice.
CAA 0 issue “letsencrypt.org 60 May 21

I couldn’t remove any “*” records, I get this toast when I try to: “Default DNS Records cannot be deleted. However, adding additional DNS Records will override the values of them.”

I am trying to understand in detail now,

Please confirm;

You need to use

mvp.appenue-ai.com for Appenue AI - AI-Driven Growth & Business Transformation Services | Market Entry | Change Management
and
appenue-ai.com for https://preview--appenue-smartspark-growth.lovable.app

Correct? Please confirm @appenueai !

1 Like

Thanks for the prompt reply.
Precisely, yes.

Hey,

I believe I have identified the root cause of the issue!

It seems that you created the web pages through lovable.app, and both pages are located under the same project. I’m assuming this because the preview link is the same for both pages.

As a result of being in the same project, the current configuration cannot properly segregate the two routes. Specifically, the root domain points to the landing page, while the other page points to a subdomain, which doesn’t make sense in this context.

If my assumption is correct, I recommend separating the landing page and the MVP project and following my earlier instructions. This should resolve your problem.

Please let me know if you need any further assistance from my side.

Best,
Chintan
[chintan.com]

1 Like

I have another project in which the domain and the subdomain were under the same project and there was no issue.

Is it possible that because the other project was working with Namecheap nameservers (and the DNS records were there), but here everything is on Vercel - it creates such a problem?

No, it’s not true! absolutely, it works the same.

@appenueai - Splitting the project seems a very easy solution for you in the current scenario.

1 Like

Splitting by building a whole new one on Lovable or using the exact same repo within that same project but as two distinct projects?