أهم النقاط
- A 404 means one URL is missing — the server itself is working.
- Redirect moved pages with a 301 to their real replacement, not to the home page.
- In WordPress, re-saving permalinks fixes most sudden site-wide 404s.
A 404 Not Found response means the web server is working, but it couldn’t find anything at the address that was requested. Your site isn’t down — one URL is.
Common causes
- The page was deleted, renamed or moved without a redirect.
- A link (in a menu, an email or another website) contains a typo.
- The file was uploaded to the wrong folder, or its name has different capitalisation — on Linux servers
About.htmlandabout.htmlare different files. - In WordPress, the permalink rules in
.htaccessare missing or out of date.
Fix it step by step
- Check the URL itself. Look for typos, double slashes or a missing file extension.
- Confirm the file exists. In cPanel’s File Manager, open
public_html(or the folder for that domain) and check the file is there with exactly that name. - Redirect moved content. If the page now lives elsewhere, add a permanent
301redirect so visitors and search engines follow it:
# .htaccess — send an old URL to its new home
Redirect 301 /old-page/ https://example.com/new-page/
- Rebuild WordPress permalinks. Go to Settings → Permalinks and click Save Changes without changing anything. WordPress rewrites its
.htaccessrules. - Find broken links at scale. Google Search Console lists URLs that return 404 under Indexing → Pages. Fix or redirect the ones that still get traffic.
- Dashboard
- Posts
- Media
- Pages
- Appearance
- Plugins
- Users
- Tools
- Settings
- General
- Reading
- Permalinks4
Permalinks
Save ChangesMake your 404 page useful
Some 404s are inevitable. A good custom 404 page keeps visitors on the site: explain what happened in plain words, add a search box, and link to your most important pages. The server must still return the 404 status code — check with the redirect checker below.
الأسئلة الشائعة
Do 404 errors hurt SEO?
A few 404s for pages that genuinely no longer exist are normal and don’t harm a site. Problems start when important pages or many internal links return 404.
Why do all my WordPress pages show 404 except the home page?
The rewrite rules are usually missing. Re-save Settings → Permalinks, and check that .htaccess exists and is writable.