Copied to clipboard

Flag this post as spam?

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


  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 07:34
    Kurniawan Kurniawan
    0

    How To Configure URL Rewriting in Umbraco

    Is that easy way to configure URL Rewriting in Umbraco ?

    I only know the settings.. to force to use a name instead of .aspx.<add key="umbracoUseDirectoryUrls" value="false"/>

     

    Link to Document usually generated base on name.. Is that possible to change that ?

    for example .. the name is page 1...

    but I want it site user access it using "home". is that possible ?

  • Rich Green 2246 posts 4008 karma points
    Aug 20, 2010 @ 07:47
    Rich Green
    0

    You can use umbracoUrlAlias to achieve what you want.

    See here http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias

    Best of luck

    Rich

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 07:48
    Kurniawan Kurniawan
    0

    It is just creating a property with this name umbracoUrlName ?

     

    Thanks

  • Rich Green 2246 posts 4008 karma points
    Aug 20, 2010 @ 08:09
    Rich Green
    0

    You just need to create a 'textstring'  property named 'umbracoUrlAlias' for any doc type that you need it for.

    Then you just put comma separate the alternative URL's you need into this field, so something like:

    'home,homepage,anotheralternativename'

    Rich

     


  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 08:32
    Kurniawan Kurniawan
    0

    Some of the page... it works,.. but there is page which not...

    Is this usually happen ?

     

    I notice.. in somereason.. when you type the master page.. it also.. return your master page.. with homepage content...

    forexample..."/Master". is there anyway to block it ?

     

    Thanks

  • Rich Green 2246 posts 4008 karma points
    Aug 20, 2010 @ 08:33
    Rich Green
    0

    Do not use the preceeding "/"

    Rich

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 08:42
    Kurniawan Kurniawan
    0

    I notice.. some of the name works.. but others not..

    such as register, createAccount ? Is that usually happen ?

    What is the different between umbracoUrlAlias and umbracoUrlName ?

    It seems umbracoUrlAlias does not work.

     

    Thanks for your help

  • Rich Green 2246 posts 4008 karma points
    Aug 20, 2010 @ 08:47
    Rich Green
    0

    Could you need to explain why you would wish to rename so many key pages.

    URL Rewriting works out of the box and umbracoUrlAlias is usually used in non standard circumstances.

    Why would you need to use an URL Alias for Master, Register and CreateAccount and why would you call your home page "Page 1" and not "home"?

    Unless you have a specific reason it seems you're making things harder than they need to be.

    Rich

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 08:56
    Kurniawan Kurniawan
    0

    Sorry, I just try the basic things...

    Here is my scenario..

    * Templates...
    Master
    -- TextPages
    -- CreateAccount

    * Document Types
    -- TextPages

    * Page
    -- Create Account - this generate Create-Account

    ---

     

    It generates Create-Account. I want it to be CreateAccount but I want to keep the name still Create Account.
    So I try to use umbracoUrlAlias .

    so I put umbracoUrlAlias  = CreateAccount... But when I browse, It doesn't work...

    But if I change the alias into "asdfsadfasdfsafd" it works... Not sure why...?

     

    I see in the CWS Startup kit.. There is also umbracoUrlName.. Is that any different ?


    Thanks

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 09:02
    Kurniawan Kurniawan
    0

    I find it...

    It seems... the value of the alias.. should be all lowercase...

    "createAccount" will not work..

    but "createaccount" will work...

     

    so do you know any different between umbracoUrlAlias and umbracoUrlName...http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlname

    When I test it umbracoUrlName does not work...

  • Rich Green 2246 posts 4008 karma points
    Aug 20, 2010 @ 09:15
    Rich Green
    1

    You should be using umbracoUrlName to achieve this, sorry if I confused you in anyway but I misunderstood what you were trying to do.

    Make sure your casing on 'umbracoUrlName' is exactly as typed here.

    Think then your values such as 'createaccount' need to be lowercase as you've suggested.

    Should work ok?

    Rich

     

     

  • Kurniawan Kurniawan 202 posts 225 karma points
    Aug 20, 2010 @ 09:49
    Kurniawan Kurniawan
    0

    That's ok...

    I think Previously I use umbracoURLName instead of umbracoUrlName...

    not it all works fine...

    using umbracoUrlName, I can use upper case as well such as createAccount
    but if using Alias, I must use all lower case.. don't know why...

    Other things...

    I have master pages.. call Master
    but when I accessing using localhost/Master... It is accessible and show me that template.. with tht content..

    do you know how to hide this outside ?

     

    Thanks

  • urvish 9 posts 29 karma points
    Oct 30, 2012 @ 13:42
    urvish
    0

    hi,

     

     

    My Page URL is like ~/new-page.aspx??lang=en&mId=1556&sId=1557 as shown in above image...

     

    Now i want that when i open this page then my URL should be like this.. ~/New-page/Goog-page  as shown in image...

    Is this possible..??

    Can anyone have idea about that than please tel me..

    Thanks in Advance...

     

  • urvish 9 posts 29 karma points
    Oct 30, 2012 @ 13:43
    urvish
    0
Please Sign in or register to post replies

Write your reply to:

Draft