Setting up IIS Rewrite for Portal to "servicedesk"
Good morning,
I am trying to setup the Cireson portal to redirect to "servicedesk".
First I have a Load Balancer that is setup to change HTTP to HTTPs, but it can't do redirect (according to my engineer).
So I installed IIS rewrite and downloaded the following instructions: http://fawzi.wordpress.com/2013/03/01/scsm-2012-self-service-portal-redirection/ . The only issue I have is which page do I use for the rewrite map and pattern.
Best Answer
-
Karen_Bruster1 Member IT Monkey ✭@Brian_Wiest In the end we decided to just add it to the IIS Bindings and see if that did the trick. So far it seems to be working.0
Answers
1. Go to the CiresonPortal site within IIS and head into URL Rewrite
2. Add Rule -> Blank Rule
3. Rule Name = HTTP to HTTPS (you can call this whatever you'd like)
4. Requested URL = Matches the Pattern
5. Using = Regular Expression
6. Pattern = (.*)
7. Conditions
7a. Condition Input = {HTTPS}
7b. Check in input string = Matches the Pattern
7c. Pattern = ^OFF$
8. Action type = Redirect
8a. Action Properties Redirect URL = https://{HTTPS_HOST}/{R:1}
8b. Append query string = true/check this box off
8c. Redirect type = Permanent (301)
So the pattern is effectively "HTTPS is not being called so someone used the HTTP version" and the redirect is a variable that points to the the name of the HTTPS host using Rule 1 (i.e. the rule we've just created here).
Attempting to get better understanding.
Are you attempting to allow someone in your org to open the browser, type "servicedesk" in the url hit enter and the webportal will open?
Assuming this is an internal application on a domain.
Have your AD admin open DNS
Setup a CNAME record for servicedesk to the IP set in your load balance
The load balancer will perform the HTTP->HTTPS conversion
Then in IIS setup the binding to servicedesk on https with cert.
Note
Depending on your org browser settings. It might default to a web search instead of DNS query. Most modern browsers perform this. So most of the time the root site setup is servicedesk.internaldomain.com also https://servicedesk will work.
HTH