Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7057617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:00:30+00:00 2026-05-28T04:00:30+00:00

Publish to CloudFormation from Visual Studio is great, it gives you the possibility of

  • 0

Publish to CloudFormation from Visual Studio is great, it gives you the possibility of deploying your web site to a single server or a Load balanced stack.

The problem rises when you want to deploy more than 1 web site in a single server, because in each deployment the main web.config located in c:\inetpub\wwwroot gets modified adding UrlRewrite. This redirects all requests from previous deployed web site to the new one.
I.e.
/
–/FIRST
–/SECOND

If I ask for a page on First it’s searched in /Second/First.

The changes applied are as follows:

    <rewrite>
        <rules>
            <rule name="AWS_DEPLOYMENT" stopProcessing="false">
                <match url="^(https?://[^/]+/)SECOND" ignoreCase="true" negate="true" />
                <conditions>
                    <add input="{PATH_INFO}" pattern="^/SECOND" negate="true" />
                </conditions>
                <action type="Rewrite" url="{R:1}SECOND{PATH_INFO}" logRewrittenUrl="true" />
            </rule>
        </rules>
    </rewrite>

Is there a way to get rid of this behavior and leave main web.config as it is?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:00:31+00:00Added an answer on May 28, 2026 at 4:00 am

    In AWS Forum I found the answer: not supported https://forums.aws.amazon.com/thread.jspa?messageID=309811.

    A simple additional settings to disable this URL Rewrite would be enough, let’s hope Amazon will add it in future .NET SDK releases

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I use the publish web site feature in visual studio 2008, it automatically
I publish web site on windows server 2008 x64 with iis 7, I developed
I want to publish a Web Service written in Visual Studio 2010 using WCF
I trying to publish my app from my own PC to the server "C:\Development\MyApp"
I trying to publish my app from my own PC to the server "C:\Development\MyApp"
I have two publish profiles defined for my project in Visual Studio 2010: one
Im trying to publish my site on an server and have been receiving this
I'm trying to Publish a Web Site using Team Build 2010, but I didn't
I am able to publish website by creating virtual directory under Default Web Site
I'm trying to publish a web site . The publication works perfectly, but when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.