Skip to content

Commit

Permalink
Redirect preview.nuget.org to www.nuget.org (#4579)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Aug 21, 2017
1 parent bb6201d commit 0442825
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/NuGetGallery/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@
</conditions>
<action type="Redirect" url="{MapProtocol:{HTTPS}}www.nuget.org/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Redirect preview">
<match url="^(.*)$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^preview\.nuget\.org$" />
</conditions>
<action type="Redirect" url="{MapProtocol:{HTTPS}}www.nuget.org/{R:1}" redirectType="Permanent" />
</rule>
<rule name="Legacy feed root URL" stopProcessing="true">
<match url="^$" />
<conditions>
Expand Down

0 comments on commit 0442825

Please sign in to comment.