+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Any way to set AdditionalUrlsRedirectToDefaultOne programmatically?

Any way to set AdditionalUrlsRedirectToDefaultOne programmatically?

3 posts, 0 answered
  1. Carl
    Carl avatar
    2 posts
    Registered:
    09 Jun 2015
    27 Jan
    Link to this post

    We need to go back and set the AdditionalUrlsRedirectToDefaultOne property of our pages to true; however we have several hundred pages to do this on. Is there any way to set this field programmatically? Intellisense tells me that it's a read only field, but I'm hoping there is a way to access/set it another way?

     

    Thanks!

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    02 Dec 2016
    01 Feb
    Link to this post
    Hi Carl,

    Please try the approach suggested in this KB article:
    http://www.sitefinity.com/developer-network/knowledge-base/details/set-additional-page-urls-to-redirect-to-the-default-url-through-the-api

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Carl
    Carl avatar
    2 posts
    Registered:
    09 Jun 2015
    02 Feb
    Link to this post
    Many thanks!! That did the trick perfectly.
3 posts, 0 answered