More in this section

Forums / Developing with Sitefinity / url rewrite paths to default.aspx

url rewrite paths to default.aspx

3 posts, 0 answered
  1. Johnson
    Johnson avatar
    5 posts
    Registered:
    27 Apr 2007
    18 Dec 2007
    Link to this post

    How do I get sitefinity to treat /about-us/ the same way as /about-us/default.aspx ?  I tried url rewriting, but it doesn't seem to work.  Perhaps I'm doing something wrong.  I currently have the rule set-up like this:

      <telerik> 
        <urlrewrites> 
          <rule> 
            <url>/about-us/</url> 
            <rewrite>/about-us/default.aspx</rewrite> 
          </rule> 
        </urlrewrites> 
      </telerik> 

    Now I get an error the following error when I go to /about-us/default.aspx :

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    and a plain "
    The page cannot be found" for /about-us/

    Thanks.

  2. Nikifor
    Nikifor avatar
    232 posts
    Registered:
    18 May 2013
    19 Dec 2007
    Link to this post
    Hello Johnson,


    Please note that Sitefinity will support URLs without extensions if you set wildcard application mappings in IIS. For details, you can refer to this section of the User Manual: Configuring IIS > Wildcard Application Mappings.


    I would recommend using another approach. First of all, you should set the About Us page as page group in Sitefinity and then add a Default.aspx page (set as normal page) as its first subpage. The page group will redirect to its first subpage.


    The next step would be configuring the IIS to handle such kind of environment.

    In the Configuring IIS > Extensionless URLs section of the User Manual, you can find the detailed instructions about setting up IIS to handle such requests.

     

    Thank you for your time.


    Regards,
    Nikifor
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Johnson
    Johnson avatar
    5 posts
    Registered:
    27 Apr 2007
    20 Dec 2007
    Link to this post
    Thanks for the quick response.  I used the 404 method and page groups and it worked out great.
Register for webinar
3 posts, 0 answered