1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2014
    Rep Power

    Changing file extensions - breaking links

    Hello all,

    We have been asked to rework a biggish website (about 30 000 static .html pages). The site is template based - on an old Microsoft template technology called .dwt (Dynamic Web Template) To cut a long story short, we are having to move away from this and we are re-thinking how best to apply new and more modern template offerings on the site. We generally use ASP.Net Masterpages as our template base on all our new sites - and where this would be fairly easily done in this case, one major issue is that all text files in the site would have to change file extension from .html to .aspx. This is a massive concern for our client as all the text files are professional documents acquired over the last 15 years and all of which have been cross-referenced from many other professional journals and web sites - so changing file names is a virtual no-no.
    Does anyone have any ideas how to possibly get around this?

  2. #2
  3. Lazy Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Washington, USA
    Rep Power
    URL rewriting. Make every *.html request redirect to *.aspx: the old links will still work and they'll redirect the user to the new location. Then Google and other search engines will (slowly) stop sending people to the .html pages but to the .aspx pages instead.

IMN logo majestic logo threadwatch logo seochat tools logo