ServiceDesk

 View Only

How to use simple URI for access Proess Manager Portal as "http://servicedesk.domain.local" instead of "http://servicedesk.domain.local/ProcessManager" 

Jan 24, 2014 04:37 PM

Problem Description: A lot of ServiceDesk Administrator and Users have a the business requirement to use simple URI for access Process Manager Portal as "http://servicedesk.domain.local" instead of "http://servicedesk.domain.local/ProcessManager".

Details: The Solution to the problem is very simple what we need to do is make sure all the internal external requests which are coming to base default website or root site(/) should be redirected permanently to subdirectory ProcessManager(/ProcessManager) within the same website. To accomplish this we need add an extension to the IIS know as URL Re-write from Microsoft Website.

Solution

Step 1. Go to Microsoft Website (http://www.iis.net/downloads/microsoft/url-rewrite) and download URL Re-Write. Install the extension.URLRewrite.jpg

Step 2. Once the extension is install you can see it under IIS as shown below. Please Note since you want to re-direct the default website to a subdiretcory we need to create this Rule for URL Re-Write under "Default WebSite".

IISURLExt.jpg

Step 3. Create a blank rule as shown below.

IISURLExtBlankRule.jpg

Step 4. Select "Matches the Pattern" in Requested URL Using "Regular Expression" in Pattern add "^$" and in Action Type Select "Redirect" to Redirect URL "/ProcessManager", Put check on Append query string and Set Re-direct Type to "Permanent (301)". 

CreateRule.jpg 

Step 5. Apply the changes as show above screenshot and restart the IIS or Default website to reflect the changes. 

Results

URLRewriteResult.jpg

 

Alternative Method (Only to be used if you are comfortable editing web.config file)

Write the below mentioned code to the Web.config file of the root site between <system.webServer> and </system.webServer>. You can locate the web.config file for default website by right click "Default Website">Explorer (idle located in C:\inetpub\wwwroot)

 <rewrite>

 <rules>
  <rule name="Root Hit Redirect" stopProcessing="true">
    <match url="^$" />
    <action type="Redirect" url="/ProcessManager" />
  </rule>
 </rules>
</rewrite>

URLRe-Writewebconfig.jpg'

It highly recommend that you try these steps only off product hours since it involve IIS reset and changes to Default Website web.config file. 

Please note this is a modification of core IIS server configuration files and is beyond the scope of support.

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.