How to fix 404 Errors - Page No Longer Exists
-
This post is deleted! -
You need to identify all the pages that are producing the 404 error, i.e. the pages that no longer exist.
After that you need to put a 301 redirect to that of a customer clicks on that link you have redirected the page to something similar (if that product no longer exists). So you are linking
to
example.com/neworappropriatepage
I'm not sure if there's a nice easy way to do in Magento, but if you google 301 redirect magento you should find some good information.
Hope that helps.
-
Hi James,
Once you have a list of pages that are returning the 404 error, you just need to setup 301 redirects to the correct page for each broken link. A 301 redirect is a permanent redirection, telling search engines that the page no longer exists, and it should point all visitors (and link juice!) to the new location that you specify.
The easiest way to do this is via FTP. You can edit your .htaccess file on your server by simply adding the following code:
Redirect 301 /oldpage.html http://www.yourwebsite.com/correctpage.html
...you'll need one of those lines for each page that is 404'ing. This should go at the top of your .htaccess file, and should be one line for each error.
Hope that helps!
-
Thanks guys for your help.