Copied to clipboard

Flag this post as spam?

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


  • Jerker Stigsson 63 posts 122 karma points
    Jul 06, 2012 @ 14:41
    Jerker Stigsson
    0

    Friendly url

    Working on a website that has blog, where the url to the blog is something like domain.com/about-us/blog.aspx.

    Is there a way to create a friendly url that reaches a page at domain.com/about-us/blog.aspx with the url domain.com/blog.aspx? What I mean, is it possible to skip the hole path in the url and replace it with the single page name like domain.com/blog?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jul 08, 2012 @ 15:43
    Jeroen Breuer
    0

    The easiest way to do that is just to move the blog node up in the in Umbraco content tree. That would make the url shorter.

    As an alternative you could use url rewrting. Go to the /config/UrlRewriting.config file and add this:

      <add name="blog"
               virtualUrl="^~/blog"
               destinationUrl="~/about-us/blog.aspx"/>

    Than if you go to domain.com/blog it will show the blog.

    Jeroen

  • Vishal 11 posts 31 karma points
    Mar 01, 2013 @ 15:06
    Vishal
    0

    Thanks Jeroen..

    Looking this from last 5 hours. :(

     

     

Please Sign in or register to post replies

Write your reply to:

Draft