Copied to clipboard

Flag this post as spam?

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


  • SiKo279 82 posts 238 karma points
    Aug 18, 2009 @ 09:02
    SiKo279
    0

    Remake of a .html site and keeping the indexed links functional

    Hi,

    There is probably no simple answer to this, but I'd like to know the possibilities.

    We have a few websites that are basically serving static .html pages. All these site are indexed by the major search engines, so the urls are here to stay (right? --> you cannot change the index of for example google?)

    So if we remake the site with umbraco/asp.net, we will have different links. Even if we keep the file and foldernames the same, we would have the .aspx extension differing from .html :(

    I was thinking that if we could work out a urlrewrite rule that basically replaces the .html extension with .aspx ... we would still be able to serve the old/indexed links...

    Are there other ways to do this?

     

    Thanks

  • Tom 50 posts 100 karma points
    Aug 18, 2009 @ 09:56
    Tom
    0

    How many urls are involved?

     

  • Petr Snobelt 923 posts 1535 karma points
    Aug 18, 2009 @ 10:16
    Petr Snobelt
    2

    You can setup IIS to handle html extension and then use urlRewrite or create your own notFoundHandler.

    http://umbraco.org/documentation/books/not-found-handlers/creating-a-custom-not-found-handler

  • SiKo279 82 posts 238 karma points
    Aug 18, 2009 @ 10:19
    SiKo279
    0

    We have around 20 sites, each with around 30 urls ...

  • SiKo279 82 posts 238 karma points
    Aug 18, 2009 @ 10:26
    SiKo279
    0

    I understood and tested that IIS7 can also redirect directly (301-permanent) from the .html page to whatever you want it to redirect to.

    This implies 2 things: Server access or hosting provider support and the old .html files so that you can apply the redirect to them.

    @Petr: Might be an idea as well, saves the fact that you actually need the .html files on the server but still needs hosting provider involvement (which is hardly avoidable of course). thanks.

  • Bert 128 posts 251 karma points
    Aug 18, 2009 @ 10:30
    Bert
    0

    Add a httpmodule that catches the old url's and 303 redirects them to the new site.

  • Bert 128 posts 251 karma points
    Aug 18, 2009 @ 10:31
    Bert
    1

    301 redirect of course for the permanent redirect. Edit functions rule :)

  • SiKo279 82 posts 238 karma points
    Aug 18, 2009 @ 10:52
    SiKo279
    0

    @Bert and Petr: I need to configure IIS to pass .html requests to ASP.NET? What makes more sense? An NotFoundHandler or a HTTPmodule?

  • Roel Snetselaar 151 posts 305 karma points
    Aug 18, 2009 @ 11:12
    Roel Snetselaar
    0

    How much effort do you want to put in it?

    I once made a webapplication that captured (via 404) the old URL's and 301 redirected them to the new URL's but you have to find a way to do this automated. Which is probably kind of hard if the html files are not dynamic. You probably have to map them to the new URL's manually. Because you can't really do an automated translation. This might be quite some work.

    But it is a good thing to think about this because often people totally forget about this when launching a new website.

  • SiKo279 82 posts 238 karma points
    Aug 18, 2009 @ 12:09
    SiKo279
    0

    I just learned that webhost4life supports a redirect module which is user configurable (http://code.msdn.microsoft.com/nUrlRewriter/Release/ProjectReleases.aspx?ReleaseId=1978)

    I think I might go this route. (It's a 20 bucks fee to enable it, but ok ... better than spending a few days creating my own solution and still to find out that I need them to change something on the server, which probably still sets us back a few dollars ...)

    Thanks all for the replies.

  • Soeren Sprogoe 575 posts 259 karma points
    Aug 18, 2009 @ 12:37
    Soeren Sprogoe
    2

    I recommend using /config/UrlRewriting.config to do Permanent Redirect on all the old .html URL's to the new .aspx URL's. When doing it like this, Google and the other search engines will eventuelly pick up that the pages have moved, and still pass on any "link juice".

    You do however have to configure your IIS to use .NET as a parser for .html files also. Or atleast I think so.

    /SoerenS

Please Sign in or register to post replies

Write your reply to:

Draft