Loading...

How to fix the 404 page not found error ?

How to fix the 404 page not found error ?

404 page not found error is one of the most common errors on WordPress sites. This problem generally occurs due to various reasons namely, after transferring a new website or whenever you modify the rules in the file named .htaccess file. So let’s discuss the solutions for each of these problems

I) Adding .htaccess File

  1. First, log in to your control panel and open the File Manager.                          
  2. Next, browse your WordPress site’s folder to locate /wp-content/and /wp-includes/ folders.                                                                                 

Make sure you enable the show hidden files option from the Settings.

  1. Then open and edit the files named .htaccess folder.                                                                                
  2. Copy and paste the codes given below.

 

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# End WordPress

  

 If the folder does not contain any .htaccess folder then, create a new folder inside the folder.

  5. Click on the +File button present at the top of the dashboard.                         
  6. Under the New file name field enter the name .htaccess. After that click on Create new file button.                                                                                                                    
  7. At last, edit the file and paste the above code into it.

These steps will solve the 404 page not found issue in most of the cases.

II) Revise the Permalink Structure of your site:
  1. Using your admin account login into the Admin Account.                                
  2. Hover over the mouse on the Settings option and click on Permalinks.

       

  1. Here select the Post name option and click on Save Changes.

 

After this step, the system will reset the permalink structure to the previous default settings.

Now, WordPress will automatically rewrite the .htaccess file and will fix the 404 URL not found error.

 

                                                                                                                                                            

 

Did you find this article useful?

Related Articles

How to add password to WordPress admin directory via cPanel ? In WordPress, you can access the WordPress admin directory by logging into your WordPress admin acco...
How to fix 500 internal server error ? There is no clear-cut solution to solve the 500 internal server error. You have to try various tips ...
How to change WordPress URL using phpMyAdmin in the DirectAdmin? The WordPress URL can be changed manually, by the use of phpMyAdmin from the DirectAdmin panel. To c...
How to set up caching for your WordPress website? With the use of Caching, your website's speed can be improved as it acts as the memory and saves som...
How to protect your Site from Brute force attacks? Hackers can upload malicious malware using brute force attacks. It can cause your site to become ina...

Categories

Website Maintenance 42
Website Maintenance Knowledge Base
SEO Services 40
SEO Services Knowledge Base
Website Design 51
Website design
Google Workspace 56
Set up Google Workspace for your team. Discover how to manage a team, migrate emails, share files, work from anywhere, and set up mobile management.
Billing 25
All type of billing information
Client Area Guide 1
Client Area Features
Delegate Access 10
Articles on Access Delegation for Third-party Platforms
Password Management 5
Password Management at Aarav Infotech India Pvt. Ltd.
WordPress 63
Knowledge base for WordPress

Shopping Cart

Your cart is empty