Copied to clipboard

Flag this post as spam?

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


  • Rachel Skuse 88 posts 118 karma points
    May 11, 2011 @ 10:51
    Rachel Skuse
    0

    Umrbraco Alias without .aspx extension

    Hi,

    Is it possible to use UmbracoUrlAlias to create an alternate url without .aspx extension?

    eg. I have set up an alias mywebsite.com/alternate-url.aspx but I would like it to be mywebsite.com/alternate-url

    Thanks,

    Rachel

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 11, 2011 @ 10:56
    Lee Kelleher
    1

    Hi Rachel,

    The "umbracoUrlAlias" property shouldn't have the ".aspx" extension (or leading forward-slash), so yes the directory (extension-less) URL should work - as long as you've got the web.config's appSetting "umbracoUseDirectoryUrls" set to true).

    Also the property alias name is case-sensitive, double check that you are using "umbracoUrlAlias" and not starting it with an uppercase "U".

    Cheers, Lee.

  • Rachel Skuse 88 posts 118 karma points
    May 11, 2011 @ 11:03
    Rachel Skuse
    0

    Thanks Lee, it's the appSetting that I'm missing!

  • Rachel Skuse 88 posts 118 karma points
    May 11, 2011 @ 11:10
    Rachel Skuse
    0

    I have set the appSetting umbracoUseDirectoryUrls set to true but I am still getting 'Page cannot be displayed'

    (when set to false the alternate url works fine with .aspx extension)

    Thanks,

    Rachel

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 11, 2011 @ 11:22
    Lee Kelleher
    1

    Hi Rachel,

    Do you know which version of IIS your website is using?  IIS7 should work fine ... so I'm thinking it's IIS6?

    If so, take a look at this page: http://our.umbraco.org/wiki/install-and-setup/setting-up-umbraco-for-friendly-urls

    Cheers, Lee.

  • Rachel Skuse 88 posts 118 karma points
    May 11, 2011 @ 12:20
    Rachel Skuse
    0

    Hi Lee,

    Yes, we are using IIS6 - Thanks for posting the article ;)

    Cheers,

    Rachel

Please Sign in or register to post replies

Write your reply to:

Draft