Forum Moderators: phranque

Message Too Old, No Replies

Need help with redirection

         

ideavirus

2:58 pm on May 10, 2005 (gmt 0)

10+ Year Member



Hi,

I need some html code to redirect to ./exchange, with out checking how they are trying to access the site ( for ex if user type x.x.x.x , it should be redirected to x.x.x.x/exchange )

I am currently using this code which is not solving my purpose...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Outlook Web Access</title>
<meta http-equiv="REFRESH" content="0;url= [secondlevel.mydomainname.com...]
<BODY>
</BODY>
</HTML>

Thank you for any help here!
Cheers

thorlabs

7:26 pm on May 10, 2005 (gmt 0)

10+ Year Member



I think you'll need some kind of server side technology.

ColdFusion Example:

<CFIF CGI.REMOTE_ADDR IS "33.44.55.66">
<CFLOCATION URL="http://secondlevel.mydomainname.com/exchange">
<CFELSE>
<CFLOCATION URL="http://secondlevel.mydomainname.com">
</CFIF>

ideavirus

9:23 am on May 11, 2005 (gmt 0)

10+ Year Member



Any example code for a windows server as to what needs to be done on the server side to achieve the same.

Thanks