| How any 404 error messages are your viewers or crawlers receiving when they go to your website? If your not sure but want to know and your website is hosted on a Cpanel server. Then we have a simple way to find out this information and here is how you do it.
Step 1. Go to http://cpanel.yourdomain.com Step 2. Sign into your account. Step 3. Scroll down to logs and click on error log.
Presto~! Now you can see what your visitors/crawlers are searching for that maybe missing.
An easy way to correct many of the missing pages is to add to your .htacces file. Simply download a copy from /public_html onto your computer. Before you open it MAKE A BACKUP COPY. Open it in a text editor and insert a new line at the bottom.
For example you may see some thing like this -
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName yourdomainname.com
- Now let say you no longer have a page called widget.html and visitors are trying to access this page and getting a 404 error. If you want them to go to a different page instead simply modify your .htacces file to look like this:
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit>
AuthName yourdomainname.com Redirect 301 /widgets.html http://yourdomain.com/new_widgets.html
- The key here is the Redirect 301 line. By doing it this way you will redirect them to a new page with only one new line vs having to create a whole new page etc. Note that the same can be done with sub directories. It would be Redirect 301 /directory http://yourdomain.com/new_widgets.html. One last thing don't forget to save it and then upload the file to your /public_html and your done.
Simple huh!
|