asp.net mvc - Azure Deployment Slot swap redirects to same domain -


my scenario follows.

i have website.azurewebsites.net main site redirects https://website.dk (i bought domain) , created deployment slot called website-dev.azurewebsites.net. when want visit 'dev' 1 still being redirected https://website.dk has changes website.azurewebsites.net.

how can access website-dev.azurewebsites.net without being redirected main one?

edit: maybe redirect in web.config file, have commented out redirect part , published?

i have found solution, turns out had comment entire <rewrite> block in web.config.

<!--<rewrite>   <rules>     <rule name="force https" enabled="true">       <match url="(.*)" ignorecase="false" />       <conditions>         <add input="{https}" pattern="off" />       </conditions>       <action type="redirect" url="https://website.dk/" appendquerystring="true" redirecttype="permanent" />     </rule>   </rules> </rewrite>--> 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -