Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

301 redirect filter

10 views
Skip to first unread message

Jeff

unread,
Jan 8, 2010, 10:06:01 PM1/8/10
to
I would like to permanently redirect some URLs that are indexed by the search
engines.

I am guessing that this would be done within OnPreprocHeaders using
SetHeader, but I really don't know. Can someone provide me with a snippet to
get me on the right track? Thank you.

Jeff

unread,
Jan 9, 2010, 10:26:01 PM1/9/10
to
Please let me provide you with some more information:

1) Thanks to David Wang's help, I've been successfully rewriting URLs for a
PHP website running on IIS 6 for over a year.

2) I have some well indexed URLs (by search engines) for my website.

3) I want to modify my URL rewriting scheme but don't want to lose my
existing search engine position.

4) I know how I would go about mapping my old URLs to the new URL writing
scheme.

The problem is that I don't know how to do specify a 301 status for my
obsolete URLs. Can a redirection filter set a 301 status code for my
obsolete URLs?

Jeff

unread,
Jan 10, 2010, 7:24:01 PM1/10/10
to
I read that an ISAPI extension can set a 301 status code using
dwHttpStatusCode but is it possible to set a status code from within an ISAPI
filter?

If so, can someone provide a short snippet for me to look at?

0 new messages