Next.js Discord

Discord Forum

Question: Issue with Domain Setup - Non-www URL Not Working

Unanswered
SILVERFANGS posted this in #help-forum
Open in Discord
Avatar
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!

39 Replies

Avatar
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)
I think this will solve the issue..
Avatar
i will share a photo of my name cheap dns record please let me know if its correct
@Salman
Image
Avatar
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.
Avatar
im so sorry for the late reply
@Selkirk Rex
Image
Avatar
Selkirk Rex
yep seems
okay
can u repeat what is your problem
the page not loading?
Image
u know
its working
Avatar
it works on forign countries
Avatar
Selkirk Rex
dunno how it can be connected with dns
Avatar
but in my country it dosent, i think its an ip block or something they have on vercel
Avatar
Selkirk Rex
hmm
Avatar
i have to use vpn to access it
Avatar
Selkirk Rex
i think there should be some option at least
Avatar
weird thing it, other sites work just fine
that are hosted on vercel
Avatar
Selkirk Rex
u using namecheap for them
as i know namecheap doesnt have its own proxy
Avatar
hmm, so the issue is from namecheap
Avatar
Selkirk Rex
i dont know exactly
is there any firewall
feature?
Avatar
only something called domain privacy protection
Avatar
Selkirk Rex
Image
check these things
i dont know exactly i am not using namecheap
also vercel has these tabs
for firewall
maybe you block some IPs?
Avatar
let me check it out