You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

zemenu.tech迁移至cPanel后自定义404页面未生效及SSL显示不安全问题求助

Fixing "Not Secure" Error After Migrating from Infinity Free to cPanel (404 Page Redirect Issue)

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 run sudo 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:

  1. Log into your cPanel dashboard and navigate to Advanced > Error Pages.
  2. Select your domain, then click 404 Not Found.
  3. Confirm the page is set to load your 404.shtml file (re-select or re-save the setting to trigger a refresh).
  4. Verify file permissions for 404.shtml are set to 644 (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:

  1. Open cPanel’s File Manager, go to the public_html folder (enable "Show Hidden Files" if you don’t see .htaccess).
  2. Open .htaccess and search for lines starting with ErrorDocument 404.
  3. If you see a line pointing to an Infinity Free URL (like ErrorDocument 404 http://old-infinity-free-domain/404.html), replace it with ErrorDocument 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.shtml to 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 21:17:49