I just looked at the Google report for one of my websites and it identified several 404 errors. The errors look like they were old pages I used during the development process, which have since been deleted, but there must still be some link to them somewhere in the website.
What’s the easiest way to track down these type of errors in a website?
Thanks David. The only problem is the link tab doesn’t show the page’s suffix. Upon closer review, it looks like the errors are from Perch enabled pages that used to be labeled with .html and now have .php.
I need to track down any links to the old .html pages.
I figured out what the errors were. They were links from the old website. Now that I’m using a CMS, pages like client.html are now client.php. Is there anyway I can redirect the old client.html pages to the new .php pages? How can I do that?
In order to use this method you will need to create a file named .htaccess or add the following to it if it exists already (not supported by Windows-based hosting) and place it on the root directory of your website, then add the code below to the file. (Remove the angle brackets from the URL if looking in the web view)
Thanks David. I created the .htaccess file and saved it to my desktop and now I can’t find it. I’m assuming it’s invisible or hidden. How do I view invisible files?
I just got off the phone with GoDaddy. Apparently, their Apache servers don’t support the Redirect 301 command. They advised me to use this code instead, but I’m not sure how to set it up.
I just got off the phone with GoDaddy. Apparently, their Apache servers don’t support the Redirect 301 command.
Another reason not to host with GD - non standard implementations!
As far as I understand it the code that they have given you only ensures that a request for yoursite.com goes to www.yoursite.com and is not for page specific redirects.
Try this instead in your htaccess file
RewriteEngine on
RewriteBase /~quux/
RewriteRule ^foo\.html$ bar.html [R]
Where foo is the old page name and bar is the new one.
Thanks David. That worked perfectly, but ~quux needs to be the domain name.
Where can I find more information on the Rewrite command and its available attributes? Also, how do I get the green code box above when inserting code into threads?
Even though I’ve done a Rewrite to redirect old pages I’m still getting Google 404 Crawl Errors. When I click on the supposedly erroneous page the redirect is working perfectly.
Why am I still getting 404 errors even though the error has been corrected?