zemenu.tech迁移至cPanel后自定义404页面未生效及SSL显示不安全问题求助
Let’s work through this frustrating issue step by step—your SSL is valid, but that old Infinity Free 404 page clinging on is causing the browser warning. Here are the most effective fixes to try:
1. Flush All DNS Caches (Local + Browser)
DNS changes don’t kick in immediately, even after you removed the old nameservers. Caches might still be pointing your domain to Infinity Free:
- Local machine: On Windows, open Command Prompt and run
ipconfig /flushdns. On macOS, use Terminal to runsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. - Browser: Clear your cache and cookies, or test in incognito/private mode to bypass stored site data.
- Wait 24-48 hours for global DNS propagation if you just updated nameservers—sometimes it takes time for all networks to catch up.
2. Double-Check cPanel’s Custom 404 Page Setup
Creating 404.shtml isn’t always enough—you need to ensure cPanel is actually using it:
- Log into your cPanel dashboard and navigate to Advanced > Error Pages.
- Select your domain, then click 404 Not Found.
- Confirm the page is set to load your
404.shtmlfile (re-select or re-save the setting to trigger a refresh). - Verify file permissions for
404.shtmlare set to644(read/write for owner, read-only for others)—incorrect permissions can prevent the server from serving it.
3. Audit Your .htaccess File for Old Rules
Your root .htaccess might still have leftover Infinity Free configurations overriding cPanel’s settings:
- Open cPanel’s File Manager, go to the
public_htmlfolder (enable "Show Hidden Files" if you don’t see.htaccess). - Open
.htaccessand search for lines starting withErrorDocument 404. - If you see a line pointing to an Infinity Free URL (like
ErrorDocument 404 http://old-infinity-free-domain/404.html), replace it withErrorDocument 404 /404.shtml, then save the file.
4. Confirm Your 404 Page Loads Over HTTPS
Even if your main site uses SSL, make sure your custom 404 page does too:
- Manually visit
https://zemenu.tech/404.shtmlto check if it loads without SSL warnings. - If it doesn’t, double-check your cPanel SSL certificate installation (go to SSL/TLS > Install and Manage SSL for your site) to ensure it covers your domain and is active.
5. Reach Out to Your cPanel Host’s Support
If none of the above works, there might be a server-side issue (like cached virtual host settings or misconfigured redirect rules) that only your host can resolve. Share these details with them:
- You migrated from Infinity Free to their cPanel service.
- Custom 404 page isn’t being served, and the old Infinity Free 404 page still loads despite DNS changes.
- The HTTP-only old 404 page is triggering the "Not Secure" warning, even though your main site’s SSL is valid.
内容的提问来源于stack exchange,提问作者David Esubalew

