Copied to clipboard

Flag this post as spam?

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


  • Inmedia 124 posts 176 karma points
    Apr 15, 2015 @ 08:54
    Inmedia
    0

    How to change URL of a document

    Hi

    I have a problem with my URL structure that I would like to make more simple.

    My page is called: 

    www.inmedia.dk/search/seo.aspx

    And I would like the URL to be:

    www.inmedia.dk/seo

    Is that even possible without changing the tree structure in the contents section? 

     And if it is, how can it be achieved?

  • Sören Deger 733 posts 2844 karma points c-trib
    Apr 15, 2015 @ 09:00
    Sören Deger
    0

    Hi Inmedia,

    you can use a textstring property with alias "umbracoUrlName" in the related document type. umbracoUrlName is a defacto standard in umbraco:

    https://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlname

     

    Hope this helps?

     

    Best,

    Sören

  • Inmedia 124 posts 176 karma points
    Apr 15, 2015 @ 09:10
    Inmedia
    0

    Hi Sören

    Well, I have tried that, but it doesn't remove the parent from the URL.

    I need it to remove the parent from the URL and also the .aspx at the end.

    And as far as I know, that can't be done with the "umbracoUrlName" property, or am I wrong about that?

  • Sören Deger 733 posts 2844 karma points c-trib
    Apr 15, 2015 @ 09:34
    Sören Deger
    0

    Hi Inmedia,

    in web.config section "appSettings" you can set "umbracoUseDirectoryUrls" to true:

    <add key="umbracoUseDirectoryUrls" value="true" />

    Then all urls are available without .aspx.

     

    You're right, the umbracoUrlName change not the parent path. I think you can do this with the /Config/UrlRewriting.config file. There is an example within this file.

    Maybe you can also use the commercial seo checker package:
    https://our.umbraco.org/projects/website-utilities/seo-checker

     

    Best,

    Sören 

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Apr 15, 2015 @ 09:40
    Stefan Kip
    0

    You can use 'umbracoUrlAlias' to make the page available for certain URL's, but this will not change what the NiceUrl property returns, so linking to the umbracoUrlAlias URL has to be done manually.

Please Sign in or register to post replies

Write your reply to:

Draft