Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

How can I make an auto response to a 402 error?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

How can I make an auto response to a 402 error?

Old 11-08-09, 08:34 PM
  #1  
DVD Talk Special Edition
Thread Starter
 
danwiz's Avatar
 
Join Date: Dec 2000
Location: Fairbanks, Alaska
Posts: 1,858
Received 0 Likes on 0 Posts
How can I make an auto response to a 402 error?

So, recently changed several page titles on my website to consolidate things. The problem is that now, when people Google search, especially for an image, the image will show up in Google Image Search, but for the page which the image "USED" to show up on, it shows a 402 error - page not found. So, what I am trying to do is make it so that when a "402 - page not found" error occurs I want to create a special html page which will suggest that they visit my home page and search from there using a text search on the home page itself. Anybody know how to make a custom page pop up when somebody gets a 402 error?
Old 11-08-09, 08:46 PM
  #2  
DVD Talk Special Edition
 
Join Date: Sep 1999
Location: Orlando, FL
Posts: 1,741
Likes: 0
Received 0 Likes on 0 Posts
Re: How can I make an auto response to a 402 error?

If your site runs on an Apache Server you can add a .htaccess file to the root of your site with something like the following text in it:

ErrorDocument 404 /path/to/specialerrorfile404.html

...or if you know what old pages need to redirect to what new pages you can add:

Redirect 301 /path/to/oldpage.html /path/to/newpage.html


Redirecting with a 301 response will forward to the correct page and eventually update the search engines to the page's new location without losing the search standing.
Old 11-08-09, 10:01 PM
  #3  
DVD Talk Special Edition
Thread Starter
 
danwiz's Avatar
 
Join Date: Dec 2000
Location: Fairbanks, Alaska
Posts: 1,858
Received 0 Likes on 0 Posts
Re: How can I make an auto response to a 402 error?

I use Yahoo Web Hosting - how do I know what server they run? Is there a way to find out?

I like your idea with the 301 redirect!

If I can find out if Yahoo uses Apache servers then I will ask more specific questions.

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


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.