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

Forums / Developing with Sitefinity / Advanced URL Rewrite - ignore case

Advanced URL Rewrite - ignore case

4 posts, 1 answered
  1. Jason Green
    Jason Green avatar
    53 posts
    Registered:
    18 Sep 2009
    07 Dec 2009
    Link to this post
    When using the urlrewrites rules, how do you set the URL to ignore the case?

    I am having issues where sometimes the URL I am matching has capital letters and fails to get caught by the correct rule.  I would like all rules to be case insensitive altogether.  How can this be done?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    08 Dec 2009
    Link to this post
    Hi Jason Green,

    The ignore case is an attribute of the Url Rewrites configuration section. Can you try to add the setting to true like this in your web.config:

    <urlrewrites ignoreCase="true">
         <!-- Add your rule elements here -->
         <rule>
           <url>[input URL pattern]</url>
           <rewrite>[replaced URL]</rewrite>
         </rule>
       </urlrewrites>

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
  3. Matthew
    Matthew avatar
    33 posts
    Registered:
    15 Dec 2008
    19 Nov 2010
    Link to this post
    Is there a guide to the urlrewriter and the different attributes you can set on <rule> and <urlrewrites>. I've searched all around and all I find are forum posts from users explaining these 1 by 1. A full tech sheet or guide would be nice.

    Thanks,
    Matt
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    25 Nov 2010
    Link to this post
    Hi Matthew,

    There are other attributes related to RewriteMode - set through <rule mode="">

    Rewrite - rewrite the url
    PermanentRedirect - 301 redirect
    TemporaryRedirect

    You can also take a look at this webinar.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 1 answered