Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. 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 Professional 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
 
Old March 31st, 2004, 01:32 PM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default redirect script in global.asa file

I have one domain www.seconddomain.com pointing to a main domain www.maindomain.com. I want to set up a redirect in the globla.asa file that will read the url seconddomain.com and redirect to maindomain.com.

Can this be done?


 
Old April 5th, 2004, 09:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

The Global.asa file is an optional file that can contain declarations of objects, variables, and methods that can be accessed by every page in an ASP application.

I think you can do this at the IIS server, by redirecting at the host level. Open IIS Server >> Properties of the website >> Home Directory Tab >> Select "A redirection to a URL", and give the URL to which you want to redirect the users visit.

Or

Put a page default.asp in the root folder of this Site which should have the code

Response.Redirect("URL_TO_WHICH_IT_SHOULD_BE_REDIR ECTED")

This should work.

Cheers!

-Vijay G





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to include file in global.asa beetle_jaipur Classic ASP Basics 1 April 18th, 2006 03:46 AM
Debugging Global.asa file arimakidd Classic ASP Professional 1 August 23rd, 2005 03:15 PM
Global.asa File Help gmoney060 Classic ASP Basics 19 September 27th, 2004 10:13 PM





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