Hi knowledgable people,
I've inherited a site running on Windows 2000 and IIS 5.0 and am
changing a few pages around.
What I want to do is redirect users and search engines from a page
like
http://www.thenameofmysite.com/old/directory/features.html
to
http://www.thenameofmysite.com/features/index.html
I've seen it recommended that I use a 301 permanent redirect. I've
also seen the following ASP code to carry out the redirect.
<%
Response.Status = "301 Moved Permanently"
Response.addheader "Location", "http://www.yourdomain.com/newpageurl/"
Response.End
%>
Now I've never used ASP before coming from a javascript/perl
background. So my initial reaction was to create a page called
text.html and put the script into it. Unsprisingly it didnt work.
There are no .asp pages on the site and there is a custom 404 page set
up I don't want to touch.
Could someone point me in the right direction. I've just goine through
the documentation if IIS and can't appear to find the answer.
Cheers
Stew Dean