Valuate Domain Names
DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
HomeRegisterMembershipsGetting StartedDomain Tools Domain EbooksSEO Software Domain Resellers Advertise

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 08-23-2009, 06:05 PM   #1 (permalink)
The Evil Mod
 
draggar's Avatar
 
Name: Ed
Last Online: Yesterday 08:09 PM
iTrader: (36)
Join Date: Dec 2007
Posts: 8,330
DNF$: 331
Location: South Florida
Country:

Send a message via ICQ to draggar Send a message via AIM to draggar

How to fix / eliminate 404 errors?

Some of my sites are getting a significant amount of 404 errors - most likely from linking old pages.

Is it possible to set up something where all the 404s will be redirected to the splash page?

Is something like this advisable (say anti-spam measures)?
draggar is offline   Reply With Quote
Sponsored Ads
Old 08-23-2009, 06:22 PM   #2 (permalink)
Bob
Jedi Master
 
Bob's Avatar
 
Name: Bob
Last Online: 11-20-2009 08:54 AM
iTrader: (74)
Join Date: Apr 2002
Posts: 2,980
DNF$: 140
Location: Massachusetts
Country:


In your .htaccess file, put this line:


ErrorDocument 404 /index.html

where index.html is whatever file you want to direct to.

-Bob
__________________
The massive purge has begun.
Bob is offline   Reply With Quote
Old 08-23-2009, 06:23 PM   #3 (permalink)
DNF Addict
 
dodo1's Avatar
 
Name: Dominik Mueller
Last Online: Yesterday 09:49 AM
iTrader: (34)
Join Date: Jun 2003
Posts: 1,509
DNF$: 3,745
Location: .DE
Country:

Send a message via ICQ to dodo1 Send a message via AIM to dodo1 Send a message via MSN to dodo1 Send a message via Yahoo to dodo1

Using a simple text editor, you'll have to create a file called .htaccess. Then add the following into the file:

ErrorDocument 404 /index.html

This would redirect users to the home page. You can also add more redirects for other error codes, such as 400, 403 etc.

Then upload the file into the web site's main directory.

*Edit* Bob beat me to it.
dodo1 is offline   Reply With Quote
Old 08-23-2009, 06:26 PM   #4 (permalink)
The Evil Mod
 
draggar's Avatar
 
Name: Ed
Last Online: Yesterday 08:09 PM
iTrader: (36)
Join Date: Dec 2007
Posts: 8,330
DNF$: 331
Location: South Florida
Country:

Send a message via ICQ to draggar Send a message via AIM to draggar

Excellent, TY.
draggar is offline   Reply With Quote
Old 08-23-2009, 06:35 PM   #5 (permalink)
DNF Addict
 
south's Avatar
 
Name: Scott
Last Online: Yesterday 05:12 PM
iTrader: (137)
Join Date: Dec 2006
Posts: 3,132
DNF$: 2,659
Location: 33143/04930
Country:


Be careful. Not sure google likes that..
__________________
All offers valid for 72 hours except running auctions.

SJCParking.com | SFOOffsiteParking.com | LaGuardiaParking.net
south is offline   Reply With Quote
Old 08-23-2009, 07:03 PM   #6 (permalink)
DNF Addict
 
dodo1's Avatar
 
Name: Dominik Mueller
Last Online: Yesterday 09:49 AM
iTrader: (34)
Join Date: Jun 2003
Posts: 1,509
DNF$: 3,745
Location: .DE
Country:

Send a message via ICQ to dodo1 Send a message via AIM to dodo1 Send a message via MSN to dodo1 Send a message via Yahoo to dodo1

Quote:
Originally Posted by south View Post
Be careful. Not sure google likes that..
Why not? I haven't had any problems with it so far and the biggest websites use this or a similar method to avoid blank error pages, too.
dodo1 is offline   Reply With Quote
Old 08-23-2009, 07:09 PM   #7 (permalink)
The Evil Mod
 
draggar's Avatar
 
Name: Ed
Last Online: Yesterday 08:09 PM
iTrader: (36)
Join Date: Dec 2007
Posts: 8,330
DNF$: 331
Location: South Florida
Country:

Send a message via ICQ to draggar Send a message via AIM to draggar

Quote:
Originally Posted by south View Post
Be careful. Not sure google likes that..
Why?

My main concern is people going to the site and getting the 404 thinking the site no longer exists (it is my wife's business) as opposed to just typing in / going to a wrong page?

Google not liking it may be an issue, too.

Also - how about global subdomain redirects?
draggar is offline   Reply With Quote
Old 08-23-2009, 08:32 PM   #8 (permalink)
DNF Addict
 
south's Avatar
 
Name: Scott
Last Online: Yesterday 05:12 PM
iTrader: (137)
Join Date: Dec 2006
Posts: 3,132
DNF$: 2,659
Location: 33143/04930
Country:


Not saying to use it under no circumstances, but it is my impression that google likes to find a true 404. If I see a lot of 404's to a page that used to exist, I often create that page, as google and others frequently maintain it in their search results even if it's no longer a real page, or not linked to from your internal links. In addition, if you have too many pages with the same content, they will further penalize you. Meaning that if a good chunk of your traffic is being redirected from a non existent page to your home page (for example), it could appear as the same content on multiple pages.

Also: http://www.google.com/support/webmas...n&answer=93641

Cheers!
__________________
All offers valid for 72 hours except running auctions.

SJCParking.com | SFOOffsiteParking.com | LaGuardiaParking.net
south is offline   Reply With Quote
Old 08-23-2009, 09:04 PM   #9 (permalink)
Platinum Lifetime Member
No Avatar
 
Last Online: 11-01-2009 05:25 PM
iTrader: (0)
Join Date: Jun 2003
Posts: 77
DNF$: 153

Send a message via AIM to gckorn

Well, Google actually provides a widget that you can install that suggests what might be the correct page on your site. See www.maine.info/festivalss.php (an erroneous page for which Google's widget itself has suggested the correct page, plus has given an internal search box).

For more info, see http://googlewebmastercentral.blogsp...re-useful.html

Get the enhanced 404 widget here - http://www.google.com/support/webmas...?answer=136085

You will need to to ensure that Custom error documents are available (and enabled) on your server, and you will need access to the relevant custom error document so that you can edit it.

gck
__________________
Small Community on Dedicated Server - www.maine.info/hosting
gckorn is offline   Reply With Quote
Old 08-23-2009, 10:37 PM   #10 (permalink)
Platinum Lifetime Member
 
dcristo's Avatar
 
Last Online: Today 02:41 AM
iTrader: (55)
Join Date: Feb 2005
Posts: 2,855
DNF$: 1
Location: Australia
Country:


Quote:
Originally Posted by south View Post
Be careful. Not sure google likes that..
True. Setting up a custom 404 page is best, and achieves the same purpose.
__________________
virtual assistant services
dcristo is online now   Reply With Quote
Old 08-24-2009, 02:15 PM   #11 (permalink)
DNF Member
 
godolphin's Avatar
 
Last Online: Yesterday 08:55 PM
iTrader: (34)
Join Date: Dec 2005
Posts: 622
DNF$: 1,650


I've got some 404's on pages of my Wordpress Blog. Is the process for it same? I do not have good web design knowledge, kindly help.
godolphin is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:50 AM.
Copyright @2001-2009 DNForum.com