More in this section
Forums / Developing with Sitefinity / Any way to set AdditionalUrlsRedirectToDefaultOne programmatically?

Any way to set AdditionalUrlsRedirectToDefaultOne programmatically?

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Carl
    Carl avatar
    2 posts
    Registered:
    09 Jun 2015
    27 Jan 2016
    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:
    17 Aug 2017
    01 Feb 2016
    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 2016
    Link to this post
    Many thanks!! That did the trick perfectly.
3 posts, 0 answered