Hinzufügen eines Inbound-Regel, die in IIS [UrlRewite]

Derzeit auf meinem prod-server habe ich eine Eingehende Regel wie folgt festgelegt, die works-Datei für alle meine Anforderungen.

Inbound-Regel ist wie folgt.

Match URL section
Requested URL: Matches the Pattern
Using: Regular Expression
Pattern: (.*)
Ignore Case: checked.

Conditions section
Logical grouping: Match All.
Input: {HTTPS}
Type: Matches the Pattern
Pattern: ^OFF$
Track capture groups across conditions: unchecked.

Action section:
Action type: Redirect
Redirect URL: https://www.domainname.com/{R:0}
Append query string: checked.
Redirect Type: Permanent (301).

Meine Forderung ist:
Wenn der Benutzer die Typen

https://beta.domain.com it should redirect to https://www.domain.com. 

wenn der Benutzer Arten

http://beta.domain.com it should redirect to https://www.domain.com. 

Wenn der Benutzer Arten

http://www.domain.com it should redirect to https://www.domain.com

Wenn der Benutzer Arten

http://domain.com it should redirect to https://www.domain.com

Vielen Dank im Voraus.
Jede Hilfe würde geschätzt werden.

Vielen Dank im Voraus.

InformationsquelleAutor shakti | 2012-05-25
Schreibe einen Kommentar