SOLVED Error 404 page not working after setup on cPanel

Operating System & Version
linux
cPanel & WHM Version
104.0 (build 6)

zemenu

Registered
Jul 18, 2022
3
0
1
Richmond
cPanel Access Level
Website Owner
So my page recently moved from infinity free to cPanel for hosting, and my team and I keep getting the unsecured thing on top even though the SSL is valid and on further notice it was the error page not redirecting to the one we created using cPanel but to infinity free's 404 page and that was the one causing problems. I deleted the infinity free from the name server, but it is still getting redirected to their site, how can this be fixed?
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,569
2,612
363
cPanel Access Level
Root Administrator
Hey there! Just to be clear, you're saying that when you visit yourdomain.com you get redirected to the page where you can purchase domains - is that correct? If so, it sounds like there is a DNS issue of some sort.

I like using the tool at intoDNS: checks DNS and mail servers health to check the validity of all DNS settings, ensuring there are no red areas or problems.
 

zemenu

Registered
Jul 18, 2022
3
0
1
Richmond
cPanel Access Level
Website Owner
Every page works correctly but if I do something like domain.com/random which doesn't exist, it should have taken me to a cPanel 404 page and not infinityfree's one. I am confused on how to fix it. I have attached what is the problem. Also I ran the website through intoDNS and there were no issuesPeek 2022-07-19 15-04.gif
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,569
2,612
363
cPanel Access Level
Root Administrator
I wonder if there is still an entry in your local .htaccess file or some other redirect causing this. If you try pulling up the page on the command line with curl -v like this:

Code:
curl -v yourdomain.com/randompagethatdoesntexist
does that give you any clues about where the 404 redirect is coming from?
 
  • Like
Reactions: zemenu

zemenu

Registered
Jul 18, 2022
3
0
1
Richmond
cPanel Access Level
Website Owner
I forgot that the file was called .htaccess, I was hoping someone to mention that, that was it that was the source of the problem the whole time. Thank you so much!!!