Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS and redirect

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IIS Lockdown & connectivity  
Author Message
user1327

External


Since: Jan 20, 2004
Posts: 1



(Msg. 1) Posted: Tue Jan 20, 2004 6:17 pm
Post subject: IIS and redirect
Archived from groups: microsoft>public>inetserver>iis (more info?)

I am trying to re-direct the default URL without using
scripting. Basically after having tried several other
methods I have put a .htm file in the root of a site and
have set this as the default document.
Then I set the file to re-direct to another url, and
ensure that the client is sent to the exact URL. The
problem occurs when I doo the following:

http://foo.bar.com/ (default.htm)

redirect to

https://foo.bar.com/exchange/

I have done a netmon trace and what IIS seems to do is
respond back with

http://foo.bar.com/exchange/

- my only thought is that IIS thinks that as it is the
same URL it can be lazy...

Help

Cheers

John Ward

 >> Stay informed about: IIS and redirect 
Back to top
Login to vote
anonymous1000

External


Since: Jan 21, 2004
Posts: 2



(Msg. 2) Posted: Thu Jan 22, 2004 2:22 am
Post subject: IIS and redirect [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 >-----Original Message-----
 >I am trying to re-direct the default URL without using
 >scripting. Basically after having tried several other
 >methods I have put a .htm file in the root of a site and
 >have set this as the default document.
 >Then I set the file to re-direct to another url, and
 >ensure that the client is sent to the exact URL. The
 >problem occurs when I doo the following:
 >
 >http://foo.bar.com/ (default.htm)
 >
 >redirect to
 >
 >https://foo.bar.com/exchange/
 >
 >I have done a netmon trace and what IIS seems to do is
 >respond back with
 >
 >http://foo.bar.com/exchange/
 >
 >- my only thought is that IIS thinks that as it is the
 >same URL it can be lazy...
 >
 >Help
 >
 >Cheers
 >
 >John Ward
 >.
 >

Hi John.
Try this :
create an ASP page named "default.asp" and set it as start-
page of your website.
Open default.asp with notepad and put the following line
in it :

<% response.redirect "https://foo.bar.com/exchange/" %>

That's it !
Hope this helps,
regards,
Aschwin Geisler<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS and redirect 
Back to top
Login to vote
user1336

External


Since: Jan 22, 2004
Posts: 1



(Msg. 3) Posted: Thu Jan 22, 2004 6:40 am
Post subject: Re: IIS and redirect [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Aschwin,

thanks for this, but unfortunately a simple redirect still counts as
scripting...

The behaviour below is actually traced back to the behaviour of the SSL
bridging that I set up on an ISA server that sits between the internet
and the IIS server. It was set to redirect both http and ssl to the IIS
server by establishing another ssl session. QED IIS was not being lazy -
it saw the incoming HTTP _as_ SSL.

Fixed now - thanks for you help.

John





*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 >> Stay informed about: IIS and redirect 
Back to top
Login to vote
lprete

External


Since: Nov 12, 2003
Posts: 71



(Msg. 4) Posted: Tue Feb 17, 2004 6:50 pm
Post subject: RE: IIS and redirect [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

John,

Try the following steps:

1. In the IIS MMC right click on the Default Web Site and select Properties.
2. Select the 'Home Directory' tab.
3. Select 'A rediection to a URL'.
4. In the 'Rediect to' field enter: "https://foo.bar.com/exchange" (note
the httpS here).
5. Select 'The exact URL entered above', 'A directory below this one', and
'Apermanent redirection for this resource'.

Now, when browsing to http://foo.bar.com, you will be redirected to
https://foo.bar.com/exchange.

Please note, that if you add a file name to the original URL for example
http://foo.bar.com/default.htm you will not be redirected, and the request
will bring up the file specified. If you want this to also redirect to
https://foo.bar.com/exchange you should edit default.htm to contain only
the following html code:

<HTML>
<HEAD>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL =https://foo.bar.com/exchange">
</HEAD>
<BODY>
</BODY>
</HTML>


Additionally, requests to files that do not exist can be redirected to
https://foo.bar.com/exchange as well. In the properties of the web site
select the 'Custom Errors' tab and find HTTP Error 404 in the list of error
messages. Select it and click 'Edit Properties'. Set 'Message Type' to
'File' and browse to the file we created with the code above.

At this point all requests will redirect to https://foo.bar.com/exchange.

Lou Prete [MSFT]

This posting is provided “AS IS” with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "John Ward" <john.l.ward RemoveThis @cgey.com>
| Sender: "John Ward" <john.l.ward RemoveThis @cgey.com>
| Subject: IIS and redirect
| Date: Tue, 20 Jan 2004 15:17:11 -0800
| Lines: 27
| Message-ID: <17b701c3dfab$8837b620$a601280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcPfq4g3C3Cx0lDMRxKeh2zgWndsiw==
| Newsgroups: microsoft.public.inetserver.iis
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.inetserver.iis:291551
| NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| I am trying to re-direct the default URL without using
| scripting. Basically after having tried several other
| methods I have put a .htm file in the root of a site and
| have set this as the default document.
| Then I set the file to re-direct to another url, and
| ensure that the client is sent to the exact URL. The
| problem occurs when I doo the following:
|
| http://foo.bar.com/ (default.htm)
|
| redirect to
|
| https://foo.bar.com/exchange/
|
| I have done a netmon trace and what IIS seems to do is
| respond back with
|
| http://foo.bar.com/exchange/
|
| - my only thought is that IIS thinks that as it is the
| same URL it can be lazy...
|
| Help
|
| Cheers
|
| John Ward
|
 >> Stay informed about: IIS and redirect 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
iis 6.0 redirect - A client is migrating from Sun Apache Webserver to IIS 6.0 Webserver. The files would be migrated over a period of time. They want to have both the sites up during migration.And the users to hit the IIS 6.0 site first. If a file is not found , the II...

IIS redirect bug - Hi, I have my website on IIS 6 on a Windows 2003 server. I wanted to do a redirect to a url and made the change in IIS. I then changed my mind and put it back to the default which points to the folder on the hard drive. But now when I go to my site in ...

how to redirect www.xxx.com.tw to www.xxx.com/tw? - Dear All, I have some questions about domain name rewrite. If I have three domain name as below: www.xxx.com.tw www.xxx.com.jp www.xxx.com and they are in different server. When users type www.xxx.com.tw, the system will auto redirect to www.xxx.com/tw..

IIS Redirect.. possible?? - I have an unusual need. I have a web based program that is available to my internal and external users. My internal users have no direct access to the internet. I need to link to a customers site and allow certain users to access that site. My..

IIS 5.0 redirect - Is this possible: Redirect a directory on one server, for example, www.fairfield-city.org/gis to a separate web server (gis.fairfield-city.org) without changing the original URL that is displayed in the browser (IE or Netscape). I don't want to use...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]