Fixing 404 Not Found errors
Ce contenu n’est pas encore disponible dans votre langue.
404 Not Found means the server can’t find the page at that address.
Your whole new website shows 404
Section titled “Your whole new website shows 404”Your files are in the wrong folder
Section titled “Your files are in the wrong folder”Your main domain’s website must be directly inside public_html, not in a folder inside it. Addon domains have their own folder, which you can see in cPanel under Domains.
In cPanel’s File Manager, check that your index.php or index.html file is in the right folder. If you uploaded a zip file, check you extracted it, and that it didn’t create an extra folder such as public_html/mysite/. See Moving a website from a subfolder to the main domain.
Your domain points somewhere else
Section titled “Your domain points somewhere else”If your domain still points to your old host, or to the wrong server, you’ll see that server’s 404 page. Check your nameservers and DNS. See I registered a domain but my website isn’t showing.
You can view your website on our servers before your domain points here. See Previewing your website before your domain points to Ruachost.
Your home page works, but other pages show 404
Section titled “Your home page works, but other pages show 404”This is almost always a WordPress permalink problem, often after moving a site.
- Log in to WordPress and go to Settings → Permalinks.
- Click Save Changes without changing anything. This rebuilds your
.htaccessfile.
If that doesn’t work, check .htaccess in your website’s folder contains the WordPress rules:
# BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule># END WordPressSee Configuring the WordPress permalink structure.
One page or file shows 404
Section titled “One page or file shows 404”- Check the address. Addresses on our servers are case-sensitive:
About.htmlandabout.htmlare different files. - The page was moved or renamed. Add a redirect from the old address to the new one in cPanel under Domains → Redirects, so visitors and search engines find it.
- Images or files are missing. See Images not showing on my website.
Make your 404 page helpful
Section titled “Make your 404 page helpful”You can replace the plain 404 page with your own, with a link back to your home page. See Creating custom error pages in cPanel.
To find broken links on your site, see Checking for broken links in your website.
Cette page vous a-t-elle aidé ?
Merci pour votre retour.