How To Fix 404 Error not found in WordPress or PHP Script

Posted on

In this article, I will tell you how you can fix 404 errors on your website. If you have a WordPress website or PHP Script Website I will tell for both. I will request you to read this Full article to fix your error 

Why 404 not Found Error Come in Your Website :

First I will tell you why this error has come. This Error Comes if your .htaccess file in your WordPress or in PHP script code is Different Which is required to run your script. 

How To Fix 404 Error in WordPress :

To Fix this error Follow The Steps:

  1. Go To Your Hosting C Panel and Click on File Manager.
  2. Than Go To Public html or your wordpress file Directory
  3. You Will find   . htaccess jut edit the file, remove the previous code and paste the code which given below then check now your problem will fixed

# 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

How To Fix 404 Error in any PHP Script  :

To Fix this error Follow The Steps:

  1. Go To Your Hosting C Panel and Click on File Manager.
  2. Than Go To Public html or your PHP Script  file Directory
  3. You Will find   . htaccess just edit the file, remove the previous code and paste the code which you can in your script . Just  extract your script zip file and then find . htaccess file and copy the code and paste it in your hosting then check your error was fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *