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

Forums / Developing with Sitefinity / URL Rewrite - Remove Virtual Directory

URL Rewrite - Remove Virtual Directory

2 posts, 0 answered
  1. John
    John avatar
    22 posts
    Registered:
    21 Jun 2010
    19 Jul 2010
    Link to this post
    Is it possible to use the advanced Sitefinity URL rewriter to remove the Virtual Directory out of the user's URL?  So, for example, if your Virtual Directory your Sitefinity instance is running in is called Group1, something like the following:
    <urlrewrites>
      <rule>
        <url>[^Group1]/Sitefinity/Login\.aspx</url>
        <rewrite>Group1/Sitefinity/Login.aspx</rewrite>       
      </rule>
    </urlrewrites>

    My reg exp might be bad, but the idea is that the user could, once they've loaded the application, hit clean links without having the Group1 virtual directory name in there...

    Thanks,
    John



  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Jul 2010
    Link to this post
    Hi John,

    The built-in UrlRewriter cannot work with pages after Sitefinity directory.

    Best wishes,
    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