Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ian Banks 24 posts 44 karma points
    May 21, 2011 @ 13:34
    Ian Banks
    0

    url rewriting

    Hi

    I am looking at trying to change certain urls for example

    /go-further.aspx

    to

    /go-further

    I can't reconfigure Umbraco to use extensionless urls as certain urls on the site need to remain as they are currently. Could someone help me with the necessary url rewriting required to do this.

    Thanks

  • Lesley 284 posts 143 karma points
    May 22, 2011 @ 00:24
    Lesley
    0

    Hi Ian,

    This should be pretty simple if you have a small set of pages you need to rewrite. In your /config/UrlRewriting.config, your example would be:

    <add name="test" 
    virtualUrl="~/go-further" 
    destinationUrl="~/go-further.aspx" 
    ignoreCase="true" />

    But... How many pages are you going to be dealing with? Why not configure extensionless URLs across the whole site? There's no reason why a request to somepage.aspx would fail in that scenario.

    Hope that helps.

  • Daniel Bardi 927 posts 2562 karma points
    May 22, 2011 @ 09:53
    Daniel Bardi
    0

    Even if you enable extensionless urls, you can still access pages with the .aspx extension... 

    Why do some pages require the extension?

Please Sign in or register to post replies

Write your reply to:

Draft