404 error - Resource Error Print

  • 0

404 error - Resource Error

A 404 error is a common HTTP response code indicating that the requested resource could not be found on the server. This error typically occurs when a client, such as a web browser, requests a page or file that does not exist.

Common Causes of 404 Errors:

  • Mistyped URL: Errors in typing the web address can lead to a 404.
  • Broken Links: Outdated or incorrect hyperlinks can cause a 404.
  • Deleted Pages: Content that has been removed or moved without redirection can result in a 404.
  • Corrupt .htaccess File: Misconfiguration can lead to accessibility issues.
  • Incorrect File Permissions: Files with restricted permissions may not be accessible.
  • Server Errors: Issues on the server can contribute to this error.

Steps to Resolve a 404 Error

  1. Ensure the Domain Points Correctly to Your Hosting

    • If your domain is still propagating, it may cause a 404 error. Wait for propagation to complete, which typically takes up to 24 hours.
    • Check for misconfigured DNS settings; ensure the domain is pointed to the correct nameserver or IP address. Use tools like DNS Checker or Whatsmydns.net to verify.
  2. Update Your WordPress Site’s Permalinks

    • Incorrect permalink settings can lead to 404 errors. To update:
      • Log into your WordPress dashboard.
      • Navigate to Settings → Permalinks.
      • Click Save Changes (no need to modify settings before saving).
  3. Set Up 301 Redirects for Moved or Renamed Content

    • If content has been moved or renamed, implement 301 redirects to guide users from the old location to the new one. This not only improves user experience but also preserves SEO value.
    • You can use a free redirection plugin or manually set redirects in your .htaccess file.
  4. Disable the .htaccess File

    • A corrupt .htaccess file can cause 404 errors. To disable it:

      • Log into cPanel and open File Manager.
      • Locate the public_html folder, right-click on .htaccess, and choose Rename.
      • Add any character to the file name to disable it.
    • Create a new .htaccess file:

      • Click New File in the upper menu, name it .htaccess, and paste the following code:
       
      # BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
  5. Fix File Permissions

    • Incorrect file and folder permissions can lead to 404 errors. The default permissions are 644 for files and 755 for folders.
    • To fix permissions in cPanel:
      • Log into your Verpex account and select your hosting plan.
      • Open File Manager, right-click on the file or folder, and select Permissions.
      • Modify permissions as needed and click Change to apply.
  6. Restore Backup

    • If the error persists after trying the above solutions, consider restoring a backup from your cPanel. Follow the restoration instructions provided by your hosting provider.

If these steps do not resolve the issue, it’s advisable to contact support for further assistance. Regularly checking for and fixing 404 errors can significantly enhance user experience and improve your site’s SEO performance.


Was this answer helpful?

« Back