More in this section
Forums / Developing with Sitefinity / How to rename all pages in sitefinity

How to rename all pages in sitefinity

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.
2 posts, 0 answered
  1. Surya CD
    Surya CD avatar
    57 posts
    06 Apr 2010
    03 Aug 2012
    Link to this post
    Is there any option to change all the page urls in a site done in Sitefinity5 to lowercase. Otherwise I will have to select each and rename it.

  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    18 Jul 2012
    03 Aug 2012
    Link to this post
    The fluent API should make this pretty easy. Just iterate through all the pages and change the name using ToLower()

    I posted an example of how you can use the API to change the sitefinity page extensions on my blog, Doing something like

    page.UrlName = page.UrlName.ToLower()

    should work. You can execute this on a dummy .aspx webforms page codebehind.

    Just be sure to:

    1. Backup your site and db first (just in case!)
    2. Let me know if this doesn't work so I can help further!

    hope this is helpful!
2 posts, 0 answered