Copied to clipboard

Flag this post as spam?

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


  • UmbracoNovice 15 posts 50 karma points
    Mar 03, 2010 @ 08:51
    UmbracoNovice
    0

    URL Rewriting?

    Hello

    I am working on site site using Umbraco 4.0 where I need to publish pages which are accessible off of a URL such as:

     www.domain.com/category-name1/pageName.aspx

     www.domain.com/category-name2/pageName.aspx

    At present the pages which I create and publish always hang off the domain itself. So I am wondering how I can achieve the /category-name1/ part in the Url. Would I need to look at Url Rewriting?

    Many thanks

    Simon

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 03, 2010 @ 09:37
    Dirk De Grave
    0

    Hi Simon,

     

    There's a settings in web.config to enable to include level 1 nodes in your url path:

    umbracoHideTopLevelNodeFromPath="false"

    (it's set to "true" in standard umbraco installation)

    Cheers,

    /Dirk

     

  • Jesper Hauge 298 posts 487 karma points c-trib
    Mar 03, 2010 @ 09:50
    Jesper Hauge
    0

    If you're thinking about url rewriting you can achieve this much easier by adding a property to your doctype called umbracoUrlAlias. You can read about it here: http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias

    This approach will probably create too much work if you have a lot of pages and categories. If that's the case you'll probably have to look into creating some kind of category/tagging system combined with a custom template if I understand your problem correct.

    Regards
    Jesper Hauge

  • UmbracoNovice 15 posts 50 karma points
    Mar 09, 2010 @ 21:06
    UmbracoNovice
    0

    Thanks for replies. I went with the umbracoUrlAlias in the end. It seems to work fine. It intially didn't work as the entries weren't in lower case. But I understand this is an outstanding bug.

     

     

  • fawad 6 posts 26 karma points
    Oct 28, 2010 @ 14:45
    fawad
    0

    Hello.

    i am new to umbraco. i have one used car exporter website based on umbraco.

    my url is like this "http://www.sitename.com/make=21&c=na&name=honda

    i would like to rewrite this url, but i am not getting the rewritten url in address bar. its still showing the old url.

    i have created the link like this:

     

    li><a href='/stocksearch.aspx?make=21&c=na&name=toyota'>TOYOTA</a></li>

     

     

     

    currently i am writing the rule in urlrewriting.config like this:

    add name="makenamerewrite" virtualUrl="^~/(.*)/(.*)/(.*).aspxwriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/stocksearch.aspx?make=$1&c=$2&name=$3" ignoreCase="true" />

    <

    i have turned on these two bits in web.config.

     

     

    umbracoHideTopLevelNodeFromPath=true

     

    umbracoUseDirectoryUrls=true;

     

    i have also done the wildcard mapping in IIS.

     

    Kindly help me asap.

     

    Thanks alot

    <

  • urvish 9 posts 29 karma points
    Oct 30, 2012 @ 13:36
    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...

     

Please Sign in or register to post replies

Write your reply to:

Draft