[thelist] IIS equivalent of Apache "Permanent redirect" directive?

Morgan Kelsey morgan at morgankelsey.com
Thu Sep 19 12:43:01 CDT 2002

ah sorry bob,

i reread your first post again, you don't need custom headers for this.

Application.cfm is where i do that, i usually setup a structure of bad
pages/good pages
and do a check on cgi.script_name.
sumthin like: (watch the wrap)
app.redirects = StructNew();
app.redirects["/pgs_categories/AmericanFurniture.cfm"] =
app.redirects["/pgs_categories/Architecture.cfm"] = "/books/architecture/";
app.redirects["/pgs_categories/ArtNouveau.cfm"] = "/books/art_nouveau/";
app.redirects["/pgs_categories/ArtsandCrafts.cfm"] =

   WriteOutput('One moment, redirecting to new page');
   WriteOutput('<meta http-equiv="Refresh" content="5; URL=' &
app.redirects[cgi.script_name] & '">');

you could use cflocation too, but the meta refresh is better if you want
search spiders to pick up the change.


> Thanks for the reply. I should've mentioned that (1) the IIS hosting
> is also shared so I don't have control over the IIS admin and (2) the
> hosting company tells me they don't support custom headers.
> Any other ideas?
> ____________________________
> O n P o i n t  S o l u t i o n s
> P.O. Box 694
> Occidental, Ca  95465
> tel / 707.874.2710
> fax / 707.874.2716
> web / www.onpointsolutions.com
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list