• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 390
  • Last Modified:

Direct certain pages on my site to 404 error page

In my Google webmasters account I have Soft Errors and it says "The target URL does not exist and your server is not returning a 404 (file not found) error. "  How do I redirect these pages to a 404 Error page?
0
livewirewebsolutions
Asked:
livewirewebsolutions
  • 3
  • 3
1 Solution
 
COBOLdinosaurCommented:
Create a page with the not found message on it, and save it as 404.html then put a file named .htaccess in the root directory that contains:

ErrorDocument 404 http://yoursitename.com/404.html


Cd&
0
 
livewirewebsolutionsAuthor Commented:
Hi COBO,

I have done this and my 404 error page works but somehow these pages are not producing the 404 error pages.

The site has classified listings of machines.  When you go to a machine the url is mydomain.com/ad/4159.  However, machines are sold and deleted but somehow people find the links on google or something and click on them.  The page no longer is available but the 404 error is not produced.
0
 
COBOLdinosaurCommented:
Is your 404.html in the root directory? if not you will need to give the full path to it.


Cd&
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
livewirewebsolutionsAuthor Commented:
my 404 page is here - http://www.cluemachines.com/404.shtml which is in the root directory, no?
0
 
COBOLdinosaurCommented:
ErrorDocument 404 http://www.cluemachines.com/404.shtml 
should work assuming the server is normally parsing shtml pages.

Cd&
0
 
livewirewebsolutionsAuthor Commented:
No worries.  I will try to talk with the developer.  Thanks.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now