Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Redirect domain on Windows ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 28 February 2008 :  10:01:25  Show Profile
In Linux it´s simple to redirect a domain to another using .htaccess - but how can I do the same on a Windows server ? I´ve looked at global.asa, but can´t seem to find the correct redirect to use.

Anyone ?

Podge
Support Moderator

Ireland
3775 Posts

Posted - 28 February 2008 :  10:22:58  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Do you have access to IIS? Its pretty simple to setup host headers for the second domain.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 28 February 2008 :  10:29:58  Show Profile
Nope, only FTP
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 28 February 2008 :  10:35:01  Show Profile  Visit HuwR's Homepage
nothing you can do via ftp I'm afraid
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 28 February 2008 :  10:43:39  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
If you have a static i.p. and have control over the dns for the second domain you might be able to do it. Also, some domain registrars allow you to forward domains.

Try talking nice to your host. They might do it for you.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 28 February 2008 10:44:07
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 28 February 2008 :  11:59:50  Show Profile
I found a solution - global.asa in the root of the domain like this:

<script language="vbscript" runat="server">
sub Session_OnStart
Response.Redirect("http://www.mynewdomain.com/")
end sub
</script>

Works perfectly !!!!! Long live the internet.
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 28 February 2008 :  12:34:07  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I was going to suggest that as a last resort. I don't think it will work if a user requests http://www.seconddomain.com/default.html but it should for http://www.seconddomain.com/default.asp

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 28 February 2008 :  14:09:02  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
Wii, if get you right,

all you need to do is

<% response.redirect("www.newdomain.com") %>

as the first line of default.asp or default.aspx

no mater if you have more lines of code on those files...

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07