Friendly Url not working when use original Address! RRS feed

  • Question

  • User-79977429 posted


    I'm using friendly url inside my Global.asax (with RegisterRoutes() method inside Application_Start event), it works correctly.

    My problem is that when i use the original page address, Url friendly does not works! for example, I have a page named 'About.aspx' & the friendly name is 'Company-Information', When i type '~/About.aspx' it does not changes to '~/Company-Information'!

    Note : My main problem is that i've using SiteMap datasource. hence, i've used original page name instead of friendly name!!

    Can anybody help me how to solve my problem?

    thanks in advance

    Tuesday, March 24, 2020 9:37 AM

All replies

  • User1535942433 posted

    Hi hamed_1983,

    Accroding to your description,as far as I think,it is impossible that change '~/About.aspx' to '~/Company-Information' using friendly url.

    I suggest you could use url rewrite in web config.

    More details,you could refer to below article:


    Best regards,

    Yijing Sun

    Wednesday, March 25, 2020 9:47 AM