404 Errors After Clicking WordPress Links | HostGator Support
  1. Knowledge Base
  2. >
  3. Results
  4. >
  5. 404 Errors After Clicking WordPress Links

404 Errors After Clicking WordPress Links

When working with WordPress, you may encounter a 404 Page Not Found error page. You may find different variations of this error page, some of which includes:

  • Error 404
  • 404 Not Found
  • HTTP Error 404
  • Not Found
  • Page Not Found
  • The requested URL was not found on this server.

What causes a 404 Page Not Found error page?

The 404 Page Not Found error page usually shows up when your .htaccess file got deleted or there was some coding issue in its rewrite rules. Don't fret! When you encounter this error page in WordPress, you have two options for correcting it.

Please click the links for more information.

Hey, we strongly recommend creating a backup of your website before making any changes. This is to make sure you have something to get back to in case of unexpected scenarios. You can trust our professional service, CodeGuard, to create daily automatic backups and alert you if any sketchy changes are found on your WordPress website.

This video demonstrates how to fix your permalinks within your WordPress Dashboard.

Here are the steps outlined in the video above.

  1. Log in to your WordPress Dashboard.
  2. From the left-hand navigation menu, hover over Settings and click Permalinks.

    WordPress Permalinks

  3. Select Plain from the Common Settings.

    Permalinks - Plain Settings

  4. Click the Save Changes button at the bottom of the page.
  5. You will get a notification, "Permalink structure updated." Refresh your browser to check your website.

This will reset the permalinks and fix the issue in many cases. If this doesn't work or if you are unable to log in to your WordPress Dashboard for some reason, you may need to edit your .htaccess file directly as instructed below.

Option 2: Modify the .htaccess file

Your second method involves adding the snippet below to your .htaccess file. If you need more instructions on how to do that, see our article, How to Edit Your .htaccess file.

  1. Add the following snippet of code to the top of your .htaccess file:
      # BEGIN WordPress
        RewriteEngine On
        RewriteBase /
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
        # END WordPress
  2. Click Save Changes.
  3. Reload your WordPress website to check.

If your blog is showing the wrong domain name in links, redirecting to another site, or is missing images and style, these are all usually related to the same problem. You have the wrong domain name configured in your WordPress blog. For details on how to resolve this problem, please refer to the following article:

If you are still having issues with this method or need additional assistance, reach out to HostGator via phone or chat.