Hello members,
I am a complete newbie who did not know how to solve this problem. Whenever I try to open my website I always face a 404 error, and I don't know what it is. My site is not opening for the last 3 days. Please if anyone knows about how to solve it, tell me. I am really curious about it.
Thanks!
Jenny Nguyen
Hello
lindamed,
The
'404 not found' error is an HTTP code that occurs when the server cannot find the file or page requested by the user. This error occurs when your browser cannot find the requested page. The 404 error code indicates that your browser can't locate the page you're trying to access.
If you're experiencing the above error code for your site, here are a few things you can do to fix the issue,
Modify .Htaccess file:
You must edit the
.htaccess file and add a code snippet at the top. You can do this from
cPanel >
File Manager.
Code:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# End WordPress
Setup a 301 Redirect:
If you have changed the URL of any specific page and haven't redirected it, it's time to redirect the old URL to your new URL. You can use a plugin to set up a
301 redirect by following the steps below,
- Firstly, you must Install the Redirection Plugin from WordPress.org.
- Now, navigate to WordPress Dashboard.
- Then, click Tools > Redirection.
- Lastly, complete the setup and Add new redirection.
Now, go to your browser to check whether the website is working and If the error has been resolved. Hence, I hope the fixes above help you resolve the 404 error for your site.
-----------------------
Regards,
harry_v