DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

return 410 instead of 404 pages for google crawlers in dnn

 2 Replies
 2 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 1
New Around Here

Hi. i want to return 410 status for crawlers in dnn.

The perpose of this action is that the google crowler index pages. now some of these pages removed or moved to another path. for that pages i want to return 410 status code and tell google, hey this pages removed ro no longer availeble so google crawler not index them as 404.

For example if user typed /aboutus in url bar and hit enter, should return 410 error.

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

It should be possible to do this in IIS with the Url Rewrite Module. I have no idea if there can be a rule to send this error only to specific agents, but it should be possible to change a 404 answer to 410.

The better way would be to add the old, invalid Url to the new page (Pages -> Advanced -> SEO) and return a 301 answer (moved permanenty). Then you customers and search engines know the new address.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Shouldn't you be looking for a HTTP 301 redirect? That would be done for you if you simply change the URL of the page via the Page Settings for that specific page. The new URL would then respond with a 200, and the previous URL would respond with a HTTP 301 to the new URL.

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved