Copied to clipboard

Flag this post as spam?

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


  • Amir Khan 1199 posts 2567 karma points
    Oct 06, 2010 @ 21:21
    Amir Khan
    0

    Directory Urls and 301

    There's been many posts on here about how to modify web.config to show directory urls which is working fine. Is there a way to redirect the .aspx url also?

    For example now on my installation a page is visible at both: mysite.com/contact and mysite.com/contact.aspx

    It seems like this could be read as duplicate content by search engines, i'd like mysite.com/conact.aspx to redirect (301) to mysite.com/contact...

    Thanks for any advice!

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 06, 2010 @ 21:42
    Stefan Kip
    0

    You could use UrlRewriting:

    Regex: ^(.+).aspx$

    Group 1 contains de directory-url :-)

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 06, 2010 @ 21:43
    Stefan Kip
    0

    And on the web is lot's of information about UrlRewriting itself (UrlRewriteNet), like: http://forum.umbraco.org/yaf_postst8416_301-redirect-using-urlrewritingconfig.aspx

  • Paul Blair 466 posts 731 karma points
    Oct 06, 2010 @ 22:01
    Paul Blair
    0

    Is it even worth worrying about? If all your navigation and links point to the directory URL's then Google will never know if it is .aspx/.html/.php

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Oct 06, 2010 @ 22:06
    Stefan Kip
    0

    @Paul

    True, I didn't even know that the directory url's with .aspx still work with directoryUrls enabled :P So Google didn't find any of them in the website I made...

  • Amir Khan 1199 posts 2567 karma points
    Oct 06, 2010 @ 22:13
  • Amir Khan 1199 posts 2567 karma points
    Oct 06, 2010 @ 22:21
    Amir Khan
    0

    @Paul, you could be right, maybe it isn't worth worrying about but the solution turned out to be so simple that I think it is worth it just to make sure.

    Plus it prevents any of my colleagues from being able to tell me I should have a permanent redirect there if they do any investigating ;)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies