Help with new intranet site

SinNisTeR

Diamond Member
Jan 3, 2001
3,570
0
0
The company I work for has this super old intranet site. I will be sprucing it up a bit, but the content will pretty much stay the same. My concern is that when we are local in the company, we can access the intranet by just typing 'http://employee' in the address bar of a browser. But to access remotely, we must type 'https://employee.company.com/' to access it, which then prompts for username and password. All the links have the aforementioned prefixes. http://employee or <a target=_blank class=ftalternatingbarlinklarge href="https://employee.company.com"><a target=_blank class=ftalternatingbarlinklarge href="https://employee.company.com"><a target=_blank class=ftalternatingbarlinklarge href="https://employee.company.com">https://employee.company.com</a></a></a> depending if we are local or remote. The person who designed it said that it was done automatically through FrontPage, but I dont use it, not would like to. The site is all static html. I'm using more of ASP (i'd rather use jsp, but oh well). Is there a way in ASP to check if its a local or remote request, then i can change all the links that way, but that'd be tedious. Would relative links solve that problem? Any better solutions? Thanks so much!!

edit (that https link was made automatically by the boards)
 

GeekDrew

Diamond Member
Jun 7, 2000
9,099
19
81
Yeah, relative links would solve the problem...

I'm not familiar with ASP, but I am with PHP... but I know that in PHP you could always echo a copy of the host name as part of the URL (so that it would always be correct).