Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

REDIRIGIENDO EL TRAFICO DE HTTP A HTTPS:

GUI Version

  • Select the website you wish to configure

  • In the “Features View” panel, double click URL Rewrite

Image Added

You will notice there are currently no rules configured for this site. Click “Add Rules…” in the Actions menu to the right of the “Features View” panel

Image Added

Use the default “Blank rule” and press “OK”.

Image Added

When editing a rule there are the “Name” field and 4 configuration pull down boxes.

  • Enter “Redirect to HTTPS” in the name field.

  • Next we will configure the first configuration pull down box called “Match URL”, on the right side of “Match URL” press the down arrow to expand the box.

Image Added

Within the “Match URL” configuration box we will set the following settings:

Requested URL: Matches the Pattern

Using: Regular Expressions

Pattern: (.*)

Image Added

We can now edit the next configuration pull down box which is “Conditions”, Press “Add…” to add a new condition to the configuration.

Image Added

We will configure the condition with the following settings:

Condition Input: {HTTPS}

Check if input string: Matches the Pattern

Pattern: ^OFF$

Press “OK”

Image Added

You should see your condition in the list of conditions.

Image Added

For this setting we do not need to configure the “Server Variables” pull down box. Continue onto the “Action” configuration box and pull down the box by selecting the arrow on the right. We will configure the following settings for the “Action” configuration:

Action Type: Redirect

Redirect URL: https://{HTTP_HOST}/{R:1}

Redirect Type: See Other (303)

Image Added

Press “Apply” then press “Back to Rules”

Image Added

You should now see the rule configured on the main screen of the URL Rewrite module.

Image Added

Test your site, it should now redirect from HTTP to HTTPS.

If we exam the web.config file we can see where the rule was entered. If we entered the rule directly into the web.config file it would show up in the GUI.

Image Added

Web.Config Rule

You can also edit the web.config file of the site directly and you will be able to see the rule in the GUI. You will need to enter the following within the <system.webServer> </system.webServer> elements.

?

1

2

3

4

5

6

<rule name="Redirect to HTTPS" stopProcessing="true">

<match url="(.*)" />

<conditions><add input="{HTTPS}" pattern="^OFF$" />

</conditions>

<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />

</rule>

When implementing this solution you need to make sure to use relative paths for all references on your page because there is a possibility you will get a warning asking you if you want to display secure and insecure items. For example, if you have a logo on your page and the URL to this logo is http://domain/images/logo.jpg, do not use the whole path because including the http:// will hard code this image to use http and not https. Instead use /images/logo.jpg.

 


REDIRIGIENDO EL TRAFICO A LA PAGINA PRINCIPAL

Use IIS Manager to configure the default website to redirect to the /owa virtual directory.

  1. In IIS Manager, expand the server, and expand Sites.

  2. Select Default Web Site. and verify Features View is selected at the bottom of the page.

  3. In the IIS section, double-click HTTP Redirect.

  4. On the HTTP Redirect page, configure the following settings:

  5. Select the Redirect requests to this destination check box, and enter the value HTTP:\\WWW.SIFCO.ORG

  6. In the Redirect Behavior section, select the Only redirect requests to content in this directory (not subdirectories) check box.

  7. In the Status code list, verify Found (302) is selected.
    When you're finished, click Apply in the Actions pane.

In IIS Manager, select the default web site, and then double-click HTTP RedirectImage AddedIn IIS Manager, select the default website, and then select HTTP RedirectImage Added

Live Search
spaceKeyDOC
placeholderBúsqueda en esta Pagina
typepage

Enlaces Relevantes

Artículos Relacionados

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel in ( "featured" , "plantilla" ) and type = "page" and space = "DOC"

Artículos Actualizados Recientemente

Recent updates
typespage
max5
spacesDOC
themeconcise
hideHeadingtrue
Change History