More in this section

Forums / Developing with Sitefinity / URL Rewriting/Optional URLs/Extensionless URLs not working.

URL Rewriting/Optional URLs/Extensionless URLs not working.

3 posts, 0 answered
  1. michael
    michael avatar
    15 posts
    22 Jan 2009
    30 Jan 2009
    Link to this post
    Hi everyone. I'm hoping you can help me out.

    I've set up a small test site with Sitefinity:


    Both aspx pages above are set up as normal pages, and "States" and "StateName" are pagegroups.

    What I need to set up is this:

    1. "/states/StateName" redirects to "/states/StateName/default.aspx"
    2. "/states/StateName/" redirects to "/states/StateName/default.aspx"

    I set up a /404.aspx page in the site root, and I redirected the HTTP 404s there like the user manual said to do on page 285. (I found this a little confusing because the user manual didn't say to do anything else for this)

    Trying #1 and #2 above, I got redirected to my /404.aspx page, and that's it.

    I then tried to set an additional URL in the properties of "/states/StateName/default.aspx" to go to "/states/StateName" and "/states/StateName/". Neither were accepted, with an error that I can only specify unique URLs.

    Trying #1 and #2 above again, I got redirected to my /404.aspx page again, and that's it.

    Then I set up the URL Rewriting as described on the user manual on page 257. I made this rewrite rule:


    ...which didn't work, even after restarting IIS. /404.aspx page again.

    What am I missing here? The extensionless url page in the manual only tells you how to set up a custom 404 page. Did you forget to put in the rest of the instructions, or are they elsewhere in the manual?

    Thanks in advance for your help,


  2. michael
    michael avatar
    15 posts
    22 Jan 2009
    02 Feb 2009
    Link to this post
    I got a lot of this to work now.. I have other questions, but they can go into another thread. 

    For this to have been resolved several days ago, I would like to request one line be added to the Sitefinity User Manual's Extensionless URL's section:

    "The sf404.aspx page doesn't need to be created; it's a built in part of Sitefinity."
  3. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    03 Feb 2009
    Link to this post
    Hi Michael,

    I apologize for the confusion.

    This page is Sitefinity internal page indeed. It is not even a page, since Sitefinity intercepts any requests made to this page, and try to process the request in an appropriate manner. I agree that this could be clearly written in our User Manual, that is why we have logged it to our To-Do list.

    Don't hesitate to contact us if you have other questions.

    Sincerely yours,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
3 posts, 0 answered