Hi! Here I have a problem that some of the items sold but few are available with expiry date and I don't know, what should I need to do with...need suggestions.
Thanks

Personally, we use the 410 Gone HTTP status. It's like a 404 error message, but instead of telling the browser / search engine that the page requested simply doesn't exist, you're saying that you know what page they were talking about, but it no longer exists, and so don't ever request it again.

I would couple the 410 Gone HTTP status with a friendly message on the site that links to related products to check out instead.

Just to clarify, that's how I would deal with expired products, but for out-of-stock products, I would simply offer an option to be notified when they're in stock again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.