Delisted stock pages to return a 404 page rather than redirecting to homepage.

The php web site has stock pages listed in the search engines that no longer exist. Currently when products are removed, the code or server is redirecting the user to the homepage with a 302 header... We would like to serve to our custom 404 page instead so that when products are removed, Google will revisit the URL, find a 404 and then remove the page from its index.

An example page is below showing the 302(soft404) seen by Google:


Fetch as Google

This is how Googlebot fetched the page.

URL: [url removed, login to view]

Date: Friday, December 14, 2012 5:05:15 AM PST

Googlebot Type: Web

Download Time (in milliseconds): 216

HTTP/1.1 302 Found

Date: Fri, 14 Dec 2012 13:08:00 GMT

Server: Apache/[url removed, login to view] (Unix) mod_ssl/[url removed, login to view] OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.3.8

X-Powered-By: PHP/5.3.8

Set-Cookie: PHPSESSID=3aee32458288bdb420d850919a3fd09f; path=/

Expires: Thu, 19 Nov 1981 08:52:00 GMT

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Pragma: no-cache

Location: /[url removed, login to view]

Content-Length: 154

Keep-Alive: timeout=5, max=100

Connection: Keep-Alive

Content-Type: text/html

Fatal error: Call to a member function getDisplayText() on a non-object in /home/simplyr1/views/[url removed, login to view] on line 2


Evner: PHP

Se mere: return path, pst to html, header error control, google web search homepage, stock control, stock content, Return, openssl, cookie store, fetch post, php call member function non object, fatal error call member function non object, php fatal error non object, 404 homepage, 404 page, member function php, error 404 found, plate text, text plate, error code 302, timeout function, download stock code, openssl server, php header set cookie, 404

Om arbejdsgiveren:
( 30 bedømmelser ) leeds, United Kingdom

Projekt ID: #4049502

Tildelt til:


ready to fix sir

$30 USD på 1 dag
(153 bedømmelser)

5 freelancere byder i gennemsnit $50 på dette job


Hi, I'm ready to work on this project.

$30 USD på 1 dag
(40 bedømmelser)

Dear Sir/Madam, Kindly See PM. Thanks & Regards, Team Head, Creative Professionals Inc.

$30 USD på 1 dag
(129 bedømmelser)

Hi, kindly check your inbox for references and details....

$30 USD in 0 dage
(3 bedømmelser)

Dear Sir, We have our expertise in PHP, MySQL, JavaScript, jQuery, CSS which are very relevant to the work to be done on the website. We have been in business for over 2 years now with 5/5 reputation and good review fo Flere

$60 USD in 2 dage
(6 bedømmelser)

I can fix this for you today if you like, there should be no problems. As well as the PHP Fatal Error your getting at the bottom. Im sending you a PM if you are interested...

$100 USD på 1 dag
(0 bedømmelser)