Copied to clipboard

Flag this post as spam?

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


  • Matthew Jarvis 129 posts 129 karma points
    Jul 13, 2011 @ 11:45
    Matthew Jarvis
    0

    Nice URL without .aspx

    Hi just wanted to check something out, found this guideline http://lynggaard.nu/2009/01/even-nicer-urls-in-umbraco/ ; from another post on here about niceurl's without the .aspx extension.

    Before I implement just wanted to check the following (I currently have .aspx extensions on my pages for my current site).

    If I implemented the wildcard mapping as discussed in the article if someone did still try to access SOMEPAGE.aspx would the server automatically direct them to SOMEPAGE. 

    Just wanted piece of mind for search engine purposes together with the ensuring that the numerous external links pointing to my site would still be valid.

    Cheers

    Matt

  • Rich Green 2246 posts 4008 karma points
    Jul 13, 2011 @ 11:48
    Rich Green
    0

    Hi,

    I'm not sure if I understand correctly but you can get 'clean' URLs by simply setting 

    <add key="umbracoUseDirectoryUrls" value="true" /> in the web.config file

    Rich

  • Rich Green 2246 posts 4008 karma points
    Jul 13, 2011 @ 11:51
    Rich Green
    0

    Sorry, just re-read your post (and the edit feature messes up code!)

    The answer is yes, both /something/ and /something.aspx would continue to work.

    Rich

  • Matthew Jarvis 129 posts 129 karma points
    Jul 13, 2011 @ 12:23
    Matthew Jarvis
    0

    Cheers, Rich worked great, nice and simple!

Please Sign in or register to post replies

Write your reply to:

Draft