Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 27th Sep 2013, 12:12 PM   #1
Warrior Member
 
Join Date: 2013
Posts: 13
Thanks: 0
Thanked 3 Times in 1 Post
Default
404 error confusion
Share on: 
fb share twitter share gplus share more share

I'm confused about 404 error messages and webmaster tools advice?

I have an a .htaccess file which states:

ErrorDocument 404 http://www.XXXXXXX.com/index.html

and these soft 404 redirects have been working fine.

In webmaster tools I have just received the error:

“Increase in soft 404 errors - Google detected a significant increase in URLs we think should return a 404 (Page Not Found) error “

So google wants me to return a 404 on my deleted pages but for my visitors I want a redirect to the home page (in-case of mis-typing).

Later google advice a little vague:
“But it's important to remember that it’s not enough to just create a page that displays a 404 message. You also need to return the correct 404 or 410 HTTP response code.” https://support.google.com/webmaster.../2409443?hl=en

I don't want to use 301 because there are too many low value pages.

So how do you return a 404 code to google's robot but direct visitors to a custom 404 error page? I cann't seem to find an answer anywhere.
Thanks

Last edited on 27th Sep 2013 at 12:14 PM. Reason: no need to link to XXXXXXX.com!
puddingsp is offline  
Unread 27th Sep 2013, 01:01 PM   #2
ɹoıɹɹɐʍ ǝʌıʇɔɐɹǝdʎɥ
War Room Member
 
RobinInTexas's Avatar
 
Join Date: 2008
Location: Texas
Posts: 2,138
Thanks: 243
Thanked 453 Times in 382 Posts
Blog Entries: 3
Default
Re: 404 error confusion
Share on: 
fb share twitter share gplus share more share

Originally Posted by puddingsp View Post


I don't want to use 301 because there are too many low value pages.

So how do you return a 404 code to google's robot but direct visitors to a custom 404 error page? I cann't seem to find an answer anywhere.
Thanks
You don't want to do anything different for Google unless you like playing in a sandbox.

Use the 301 and don't worry if it was low value. The 301 is the best way to get it out of G's index

Robin


...Even if you're on the right track, you'll get run over if you just set there.
RobinInTexas is offline  
Unread 21st Oct 2013, 11:56 AM   #3
Warrior Member
 
Join Date: 2012
Posts: 21
Thanks: 2
Thanked 1 Time in 1 Post
Default
Re: 404 error confusion
Share on: 
fb share twitter share gplus share more share

I'm using URL rewriting in this case to display a custom error page while returning 404 in the HTTP response. That custom page would typically contain a human readable sitemap.

How this is achieved technically depends on your hosting environment, the article below explains how URL rewriting is added in PHP:
URL rewriting with PHP - Stack Overflow

geekyfox is offline  
Closed Thread


Bookmarks

Tags
.htaccess, 404, confusion, error, page not found


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:22 PM.