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

Re: Setting up a 301 redirect for individual pages on IIS by Kristofer

Kristofer
Mon Nov 17 05:42:03 CST 2003

Hello,

You can do this using IIS instead of writing code (the old page is a html
page, and you need an asp page to execute code, so that is really going to
be difficult).

In IIS Manager, right click the file/folder and click Properties.
Click on the Directory tab.
Change to "A redirection to a URL"
Check none or more check boxes (depending on what you want to do) in the
"The client will be sent to..." section.

--
Regards,
Kristofer Gafvert
Reply to newsgroup only. Remove NEWS if you must reply by email, but please
do not.


"stew dean" <stewart@webslave.dircon.co.uk> wrote in message
news:2b68957a.0311170328.7b416b5f@posting.google.com...
> 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