How do I fix a 404 error on a Wordpress site?

Procédure

Why do I get a 404 error on my Wordpress site?

Wordpress is one of the most powerful content management systems (CMS) available today, but certain modifications to the configuration of your Wordpress site can make it inaccessible.

One of the most common problems is the"404 page not found" error. Usually, when you get this page when browsing your website, you are still able to connect to the Wordpress dashboard. This error generally occurs when your ".htaccess" file has been deleted when it contained information relating to some of your extensions such as caching extensions, but it can also occur if the rewriting rules defined in this file are not the correct ones. All you need to do is set your permalink parameters via your Wordpress dashboard.

How do I fix a 404 error on a Wordpress site?

1. Connect to the dash board of your Wordpress website. The default url for the connection page is http://nomdedomaine.ext/wp-admin.

You will need to replace "domainname.ext" with the domain name you use for your website.

How do I fix a 404 error on a Wordpress site?


2. Click on"Settings" and then on the"Permalinks" tab.

How do I fix a 404 error on a Wordpress site?


3. Click on the"Save changes" button to reset the permalinks.

How do I fix a 404 error on a Wordpress site?


This will update your"permalinks" parameters and empty the rewriting rules in your ".htaccess" file. In most cases, this solution will correct the"404 page not found" error.

Conclusion

You are now able to correct a 404 error on your Wordpress site hosted by LWS. This error is often due to a problem with the rewriting of permalinks defined in your .htaccess file. You can modify the .htaccess file yourself to add your own rules.

Don't hesitate to share your comments and questions!

help.lws.net/a/986
Was this article helpful?

Yes

No

Read 26 744 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.