HostGator.com » Support Portal

404 Errors After Clicking WordPress Links

When working with WordPress, 404 Page Not Found errors often occur when a new theme has been activated or when the rewrite rules in the .htaccess file have been altered.

When you encounter a 404 Page Not Found error in WordPress, you have two options for correcting it.

Option 1: Correct the Permalinks

  1. Log in to WordPress.
  2. From the left-hand navigation menu in WordPress, click Settings > Permalinks (Note the current setting. If you are using a custom structure, copy or save the custom structure somewhere.)
  3. Select  Default.
  4. Click Save Settings.
  5. Change the settings back to the previous configuration (before you selected Default). Put the custom structure back if you had one.
  6. Click Save Settings.

This will reset the permalinks and fix the issue in many cases. If this doesn't work, you may need to edit your .htaccess file directly.

Option 2: Modify the .htaccess File

Follow the instructions in this article on How to Edit Your .htaccess file.

Add the following snippet of code to the top of your .htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# End WordPress

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:


Article Comments

Ryan Jarrett
I found that by going into the Permalink settings in Wordpress and saving them as they are can fix the issue

artdogs505
Thanks Ryan, that worked perfectly for me.

Dinesh
I did the same and issue persists. I had a chat session with ur rep and he said can't help with editing .htaccess. Is there anything else I can try.

HostGator
This is something that is normally outside our support abilities because it is a file generated by WordPress, not HostGator.

However, we can provide the default .htaccess file (for clean URLs) which generates on new WordPress installations. Please call us back and ask for "a copy of the WordPress default htaccess file".

Andy
It works like a charm to me. Thanks a bunch for the excellent service.

Martin
As Ryan suggested, going into the Permalink settings in Wordpress and saving them as they fixed the issue for me. I would suggest trying that first.

Aby
Seems, there's a lot I need to learn. I have this problem, when I put in URL bar, mydomain.com/WP-admin, I get the 404 Error page. how do I go into the Permalink settings in Wordpress please?

HostGator
File and folder names are case sensitive. You need to use mydomain.com/wp-admin

Hugh Malone
tried to download wordpress to my oceanhomeguru.com site via fantastico and all seemed well until i click the sdmin link and it repeatedly takes me to my site rather than the wordpress admin. any ideas on what i'm doin wrong? thanks

HostGator
You may need to fix the WordPress home and site url entries in the database. Read the "WordPress Home Fix" article.

If that is not the problem, please contact us via email, phone or live chat for personalized assistance.

Jennifer
Hi! I'm not sure what Ryan and Martin mean "I found that by going into the Permalink settings in Wordpress and saving them as they are can fix the issue" How do you go into the Permalink settings and "save" them??" Is there a button there that says "save"?

HostGator
Go to your wp-admin section and click the Settings button at the very bottom left corner. Now you will see a button for "Permalinks". Click it and you will see what they are talking about.

Danicius
Editing the .htaccess file worked lika charm.

Benchlegs
Worked like a charm! Thank you!

AD
Wow, thanks so much for saving me a major headache. Just clicking "save changes" (leaving all the setting as is) under the Permalinks option also worked like a charm for me. After nearly pulling out my hair yesterday over a different WP issue, this tip was like a Godsend to me.

Tarun Jaiswal
Worked in a single go. Thanks!

HostGator
Thank you for your comments. Just a quick reminder that the comments on this page are not monitored by technical support staff, and that for support issues, it is best to contact us by live chat, phone or email so we can assist you right away.

Although comments are not monitored by technical support staff, they are moderated and read by technical writers. Comments will need to be approved by a moderator before appearing.

Our technical writers do read the comments periodically for the purposes of updating the articles, and do appreciate your feedback, suggestions and corrections to the articles themselves, as well as any suggestions or tips for readers of this article. However, support questions posted here are not guaranteed to be replied to in a timely manner or at all. For support issues, it is best to contact our support staff instead by live chat, email or phone.



Your comments help us keep the knowledge base updated. This is not a medium for support. If you have questions or need help, please contact us via email, phone or live chat for fast assistance.

Post Comment