1

I have a dynamic website which generates the product pages dynamically from imported data. And after few days the product is expired. Now my question is that i want that the search engine recognize this and removes it from index.

For that i want to create a Template in IIS and want that if a product is no more active then coldfusion should generate a 410 Error Code and IIS should call the default 410 template.

How may i implement this?

Thanks

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
user991047
  • 315
  • 4
  • 12

1 Answers1

2

I'm not entirely sure how to pull in the IIS template, but the first part of your question is fairly easy: Just use the cfheader tag.

<cfheader statuscode="410" statustext="Gone" />

Eric Cobb has a blog post which provides more detail.

ale
  • 6,369
  • 7
  • 55
  • 65