Since the old site was all in html, I associated the html pages to be read through the ASP engine.
To do this, open up the IIS manager. Right Click on the website you want to edit (the old one, in this case) and choose "properties". Click on the "Home Directory" tab. Click the "Configuration" button and a new window will open with the extensions and their associated .dll files. Add a new extension mapping by pressing the "Add" button. Put in .html for the extension field, and then put the .asp information for the other fields.
Now, .html files will be parsed with the asp engine.
After that, I put asp code at the top of the pages that did the redirect and returned the correct text:
<%
Response.Status = “301 Moved Permanently”
Response.addheader "Location", "http://www.newdomain.com/newdirectory/newpage.html"
Response.End
%>
Doing this got the redirect to show up properly.
|