Question: Issue with Domain Setup - Non-www URL Not Working
Unanswered
SILVERFANGS posted this in #help-forum
Hi everyone, I'm having an issue with my Next.js app that I recently hosted. When I try to access my site via https://mydomain.com, it doesn't load, but when I add www to it (https://www.mydomain.com), it works fine.
I’m not sure if this is an IP block in my country, as some users from my region need to use a VPN to access the site. Other websites work as expected for them without needing a VPN. Could this be a DNS or configuration issue? Has anyone experienced something similar or knows how to fix it? Any help would be appreciated!
I’m not sure if this is an IP block in my country, as some users from my region need to use a VPN to access the site. Other websites work as expected for them without needing a VPN. Could this be a DNS or configuration issue? Has anyone experienced something similar or knows how to fix it? Any help would be appreciated!
39 Replies
It's related to how you have configured your DNS not nextjs.
You should have two A record.
(1) Type of Record: A
Name: xyz.com
Content: 75.100.100.100 ( Server IP Address)
(2) Type of Record: A
Name: www
Content: 75.100.100.100 ( Server IP Address)
(1) Type of Record: A
Name: xyz.com
Content: 75.100.100.100 ( Server IP Address)
(2) Type of Record: A
Name: www
Content: 75.100.100.100 ( Server IP Address)
I think this will solve the issue..
i will share a photo of my name cheap dns record please let me know if its correct
@Salman
Selkirk Rex
Hmm, I don't remember exactly, but there is also a dashboard on Vercel to configure domains. Maybe that's the place where you should add something. Please paste a screenshot for better clarification.
Selkirk Rex
yep seems
okay
can u repeat what is your problem
the page not loading?
u know
its working
it works on forign countries
Selkirk Rex
dunno how it can be connected with dns
but in my country it dosent, i think its an ip block or something they have on vercel
Selkirk Rex
hmm
i have to use vpn to access it
Selkirk Rex
i think there should be some option at least
weird thing it, other sites work just fine
that are hosted on vercel
Selkirk Rex
u using namecheap for them
as i know namecheap doesnt have its own proxy
hmm, so the issue is from namecheap
Selkirk Rex
i dont know exactly
is there any firewall
feature?
only something called domain privacy protection
Selkirk Rex
check these things
i dont know exactly i am not using namecheap
also vercel has these tabs
for firewall
maybe you block some IPs?
let me check it out