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

Forums / Developing with Sitefinity / URL Rewriting will not work

URL Rewriting will not work

2 posts, 0 answered
  1. Dan
    Dan avatar
    23 posts
    Registered:
    04 Dec 2010
    31 Dec 2010
    Link to this post
    Hello,

    We've been moving pages around and i'm trying to solve for outdated links. For example:

    http://www.mysite.com/KnowledgeCenter/MyConsultants/ABCsofFinance.aspx

    is now:

    http://www.mysite.com/KnowledgeCenter/Experts/Accounting.aspx


     In my web.config file,  i have something like this:
      <telerik>
      <urlrewrites ignoreCase="true">
         <rule>
           <url>MyConsultants/ABCsofFinance\.aspx</url>
           <rewrite>Experts/Accounting\.aspx</rewrite>
         </rule>
         </urlrewrites>

    However, nothing I try is working. I still get this error:

    The file '/KnowledgeCenter/MyConsultants/ABCsofFinance.aspx' does not exist.

     Its like my rules are being ignored.  I have done everything to enable to the rewriter according to this page:
    http://www.sitefinitywatch.com/blog/09-01-08/URL_Rewriting_with_Sitefinity_s_AdvancedUrlRewriter.aspx

    Any ideas?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Jan 2011
    Link to this post
    Hi Dan,

    It is not necessary to escape the dot inside <rewrite> rule. Can you use a simple test to verify the the rewrite module is enabled . You can take a look at this post.

    Regards,
    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
2 posts, 0 answered