rubberduck-vba / RubberduckWeb

Project Website for the Rubberduck VBA Editor Add-In
19 stars 12 forks source link

Permanently redirect .html pages to mvc controllers #7

Closed rubberduck203 closed 7 years ago

rubberduck203 commented 8 years ago

http://rubberduck-vba.com/news.html redirects to http://rubberduckvba.com/news.html, which results in a 404.

http://stackoverflow.com/q/16979234/3198973 should help us do that for all five of the old pages.

retailcoder commented 7 years ago

FWIW I'm not going to be renewing the original rubberduck-vba.com domain when it expires in February.

EBrown8534 commented 7 years ago

I think it's prudent just to close this, this cannot be resolved by the method posted by @ckuhn203 without making IIS configuration changes. (.HTML pages don't call the managed handlers in IIS, which means it just looks for that static page.) The best we could do is create an HTML page that contains the following:

<meta http-equiv="refresh" content="0;URL='/newpage/'" />

But this would mean creating a .html page for each of the pages that need redirected, and would be ugly in our site root.

The next best thing would be to create a custom errors page that would be displayed for 404 Not Found instead of the default which has information about the new links on it, but I'm not certain that even that would work with a .html page.