Command line reference also for adding redirects for IIS7 from http://msmvps.com/blogs/andrewwestgarth/archive/2008/07/31/creating-http-red irects-in-iis7-on-virtual-directories-like-iis6.aspx
%windir%\system32\inetsrv\appcmd set config "nameofsite/virtualdirectoryname" -section:system.webServer/httpRedirect -enabled:true -destination:destinationofredirect -commitpath:apphost From: ozmoss@ozmoss.com [mailto:ozm...@ozmoss.com] On Behalf Of Daniel Brown Sent: Friday, 26 June 2009 12:08 PM To: ozmoss@ozmoss.com Subject: RE: ssl redirect This method uses the HTTP Redirect module which is not installed by default with IIS7. To install you, You will need to go into the Server Manager and select it under the Role Services of IIS7/Web Server role. -DB From: ozmoss@ozmoss.com [mailto:ozm...@ozmoss.com] On Behalf Of Matthew Cosier Sent: Friday, 26 June 2009 12:04 PM To: ozmoss@ozmoss.com Subject: Re: ssl redirect http://www.trainsignaltraining.com/windows-server-2008-http-redirection/2008 -03-27/ ? On Fri, Jun 26, 2009 at 12:30 PM, Matthew Cosier <cos...@gmail.com> wrote: Sorry I didn't read that properly. For redirection you might be able to change the website in IIS (via http header redirection?) I'm sure you can change it to perm redirect. M On Fri, Jun 26, 2009 at 12:26 PM, Matthew Cosier <cos...@gmail.com> wrote: Create a new extended web application for HTTPS, then go into IIS and stop the HTTP website. I find that's the easiest way. M On Fri, Jun 26, 2009 at 12:15 PM, Chris Grist <cgr...@educationau.edu.au> wrote: Hi Guys. Atm sharepoint is running on http/https i want to stop people accessing via http. But some have bookmarks/links etc so id like the it to redirect. Ive tried the following as a 403.4 error asp page: <% Data = request.servervariables("QUERY_STRING") URL = replace(Data, "403;", "") URL = replace(URL, "http://", "https://") response.Status = "200 OK" response.redirect URL %> However this goes http->https->http in the browser box and comes with a 403 error "likely cause you are required to login" Chris Grist Technical Officer, ICT Systems Education.au Limited Level 1, 182 Fullarton Road DULWICH SA 5065 p +61 8 83343291 f +61 8 83343211 e cgr...@educationau.edu.au w www.educationau.edu.au <http://www.educationau.edu.au/> _____ IMPORTANT: This e-mail, including any attachments, may contain private or confidential information. If you think you may not be the intended recipient, or if you have received this e-mail in error, please contact the sender immediately and delete all copies of this e-mail. If you are not the intended recipient, you must not reproduce any part of this e-mail or disclose its contents to any other party. This email represents the views of the individual sender, which do not necessarily reflect those of Education.au except where the sender expressly states otherwise. It is your responsibility to scan this email and any files transmitted with it for viruses or any other defects. education.au limited will not be liable for any loss, damage or consequence caused directly or indirectly by this email. _____ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: <http://www.codify.com/lists/ozmoss> http://www.codify.com/lists/ozmoss Other lists you might want to join: <http://www.codify.com/lists> http://www.codify.com/lists _____ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: <http://www.codify.com/lists/ozmoss> http://www.codify.com/lists/ozmoss Other lists you might want to join: <http://www.codify.com/lists> http://www.codify.com/lists _____ Support procedure: https://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: <http://www.codify.com/lists/ozmoss> http://www.codify.com/lists/ozmoss Other lists you might want to join: <http://www.codify.com/lists> http://www.codify.com/lists -------------------------------------------------------------------------------- Support procedure: http://www.codify.com/lists/support List address: ozmoss@ozmoss.com Subscribe: ozmoss-subscr...@ozmoss.com Unsubscribe: ozmoss-unsubscr...@ozmoss.com List FAQ: http://www.codify.com/lists/ozmoss Other lists you might want to join: http://www.codify.com/lists