Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 10th, 2003, 05:54 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default global redirect for one ASP page in site

Hi:

Is there a way to have a global response.redirect, 1 file for the entire site. Basically I want to repoint any links that are now going to

/old_directory/downloads.asp

to go to:

/new_directory/downloads/default.asp

I could do an HTML meta-refresh redirect but I would rather use ASP.

Dan

Dan Englander
http://danenglander.net/
------------------------
  #2 (permalink)  
Old June 10th, 2003, 06:47 PM
Friend of Wrox
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

Dan,

Maybe I'm missing why this is a Global redirect. It seams like you just need to replace the page at "/old_directory/downloads.asp" with a redirect page to "/new_directory/downloads/default.asp"

A simple replacement page for "/old_directory/downloads.asp" like:
Code:
<%
     Response.Redirect "/new_directory/downloads/default.asp"
%>
would do the trick.

If it's something more complicated like needing to redirect a user someplace else if they link to any page in "/old_directory/...whatever..." would most likely need to be done in the server.

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.
  #3 (permalink)  
Old June 10th, 2003, 06:53 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bruce, that did it. I was using an HTML meta refresh but this is much smoother.

thanks!

Dan

Dan Englander
http://danenglander.net/
------------------------


Similar Threads
Thread Thread Starter Forum Replies Last Post
redirect to page other than default page sarah lee ASP.NET 1.0 and 1.1 Basics 3 December 15th, 2006 05:45 PM
Before Page Redirect b_karmakar ASP.NET 1.0 and 1.1 Professional 0 July 31st, 2006 01:00 AM
Redirect to new page without closing current page peter2004 ASP.NET 2.0 Basics 5 June 5th, 2006 08:49 PM
redirect script in global.asa file dawncargo Classic ASP Professional 1 April 5th, 2004 09:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.