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)
 Global Multi Domain Redirect [:)]
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

eernstbmi
Junior Member

Denmark
113 Posts

Posted - 12 March 2001 :  15:06:25  Show Profile  Visit eernstbmi's Homepage  Send eernstbmi an ICQ Message  Send eernstbmi a Yahoo! Message
Does anyone know how to do a automatic global multi domain redirect?

I got two domain names http://www.navision.net and http://www.navisiondamgaard.net

Currently they simply display the same website and forum. But because of the two different domain names it makes troubles with my cookies.

Can I do a automatic redirect/update of the domain name, so that if the user enteres http://www.navision.net/forum then it get's updated to http://www.navisiondamgaard.net/forum?

Best regards,
Erik P. Ernst

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 12 March 2001 :  16:08:30  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
response.redirect("http://www.navisiondamgaard.net/forum")



----------------
Da_Stimulator
Need a Mod?
My Snitz Test Center
Go to Top of Page

eernstbmi
Junior Member

Denmark
113 Posts

Posted - 16 March 2001 :  04:51:29  Show Profile  Visit eernstbmi's Homepage  Send eernstbmi an ICQ Message  Send eernstbmi a Yahoo! Message
Actually this is not quite enough.

But I think this would do it:


scriptname = Replace(Request.ServerVariables("HTTP_REFERER"), "http://www.navision.net", "http://www.navisiondamgaard.net")

response.redirect(scriptname)


Best regards,
Erik P. Ernst
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 16 March 2001 :  07:58:16  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Erik,

You could also do something like....


<%
If instr(Request.ServerVariables("HTTP_HOST"),"navision.net") Then
Response.Redirect("http://www.navision.net/navision")
Else
Response.Redirect("http://www.navisiondamgaard.net/navisiondamgaard")
End If
%>


Brad
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07