You are here:  » 410 gone page


410 gone page

Submitted by wesse249 on Sat, 2017-10-28 19:36 in

Hello David,

When i go to this url i get a 410 gone. Because product is deleted.

{link saved}

But the title of the page sai 404. - example.com

How can i change this and how can i redirect the page to the homepage?

Thanks Jan Roel

Submitted by support on Mon, 2017-10-30 09:18

Hello Jan,

A 410 response isn't default functionality so I checked the last products.php that I have from you in email and I see that the header is set at line 82:

  header("HTTP/1.0 410 Gone");

It's not valid HTTP to issue multiple response codes however you could do a redirect to the home page via an HTML meta refresh - if you wanted to try this, look for the following code at line 164:

  if (isset($product)) require("html/product.php");

...and REPLACE with:

  if (isset($product))
  {
    require("html/product.php");
  }
  else
  {
    print "<meta http-equiv='refresh' content='0;url=".$config_baseHREF."' />";
  }

Hope this helps!

Cheers,
David.
--
PriceTapestry.com