Redirecting an asp.net MVC URL to a specific controller/action/parameter using httpRedirect in web.config
<p>I have a website hosted in Azure, which will be accessed with the URL <a href="https://abc.cloudapp.net/controller1/action1/parameter1" rel="nofollow">https://abc.cloudapp.net/controller1/action1/parameter1</a></p>

<p>My Customer wants the following.</p>

<p>When we try to access the url "<a href="https://abc.cloudapp.net" rel="nofollow">https://abc.cloudapp.net</a>", it should automatically redirect me to the actual url mentioned above for the website.</p>

<p>I want this to be achieved using the web.config. and I tried several combinations (Couple of those are listed below).</p>

<p>Combination 1: </p>

<pre><code>&lt;system.webServer&gt;
  &lt;rewrite&gt;
    &lt;rules&gt;
        &lt;rule name="Redirect to Full URL" stopProcessing="true"&gt;
            &lt;match url=".*" /&gt;
            &lt;conditions&gt;
                &lt;add input="{URL}" pattern="^abc.cloudapp.net$" /&gt;
            &lt;/conditions&gt;
            &lt;action type="Redirect" url="https://abc.cloudapp.net/controller1/action1/parameter1" redirectType="Permanent" /&gt;
        &lt;/rule&gt;              
    &lt;/rules&gt;
  &lt;/rewrite&gt;
&lt;/system.webServer&gt;
</code></pre>

<p>Combination 2: </p>

<pre><code>&lt;system.webServer&gt;
  &lt;rewrite&gt;
    &lt;rules&gt;
        &lt;rule name="Redirect to Full URL" stopProcessing="true"&gt;
            &lt;match url="https://abc.cloudapp.net" /&gt;
            &lt;action type="Redirect" url="https://abc.cloudapp.net/controller1/action1/parameter1" redirectType="Permanent" /&gt;
        &lt;/rule&gt;              
    &lt;/rules&gt;
  &lt;/rewrite&gt;
&lt;/system.webServer&gt;
</code></pre>

<p>None of these combinations have worked.
I had posted a workaround below for this problem.
However, I need some quick help in this for a permanent solution. 
I still need help on this, can some one help please.</p>