Copied to clipboard

Flag this post as spam?

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


  • Aximili 177 posts 278 karma points
    Apr 09, 2013 @ 07:06
    Aximili
    0

    Upgrading Umbraco 4.7 to MVC?

    I have successfully upgraded my website from Umbraco 4.7 to Umbraco 6.

    But apparently all my URLs are still the same, they're all with .aspx
    Is there any guide on how I can convert it to MVC?

    I just want the pretty URL, such as /About instead of /about.aspx

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Apr 09, 2013 @ 08:56
    Dennis Aaen
    1

    Hi Hardi,

    I donĀ“t know if this can helps you, but I hope so.

    http://alanfeekery.com/2011/02/24/clean-urls-in-umbraco/

    /Dennis

     

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 09, 2013 @ 09:14
    Dave Woestenborghs
    3

    You need to set the appSetting umbracoUseDirectoryUrls to true in the web.config

     

    Dave

  • Aximili 177 posts 278 karma points
    Apr 10, 2013 @ 05:07
    Aximili
    0

    Perfect! Thanks Dennis and Dawoe!

    One more question, is there a way to make it omit the trailing slash?
    ie. /about instead of /about/

  • Aximili 177 posts 278 karma points
    Apr 10, 2013 @ 06:54
    Aximili
    0

    I found it!!!

    in config/umbracoSettings.config

    <addTrailingSlash>false</addTrailingSlash>

    Wow this makes Umbraco so much better!!! I wonder why it's not enabled by default...

    Now, does anyone know how to convert the website to MVC?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Apr 10, 2013 @ 09:32
    Dave Woestenborghs
    1

    There is also a setting in the umbracoSettings.config file for that :

    <defaultRenderingEngine>Mvc</defaultRenderingEngine>

    All your .net master page templates will keep working if you change this, but if you use the backend to create a new template this will be a MVC view

  • Aximili 177 posts 278 karma points
    Apr 11, 2013 @ 04:11
    Aximili
    0

    Oh that is so cool! Thanks Dawoe!

Please Sign in or register to post replies

Write your reply to:

Draft