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 9160233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:41:21+00:00 2026-06-17T13:41:21+00:00

I have to apply some redirect rules on IIS7/VS2008 and have question on how

  • 0

I have to apply some redirect rules on IIS7/VS2008 and have question on how to deploy it. We have a website and not web application and hence most of other SO questions were not useful to me.

in order to apply rule like below in website:

    <rewrite>
       <rules>
       <clear />
          <rule name="Redirect rule1 for Static404Redirects">
            <match url=".*" />
            <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
               <add input="{Static404Redirects:{REQUEST_URI}}" pattern="(.+)" />
             </conditions>
             <action type="Redirect" url="{C:1}" appendQueryString="false" />
           </rule>
        </rules>
    </rewrite>
  1. in Bin folder there is no websitename.dll. just some other dlls like Ajaxtoolkit.
  2. Should it have any dll/assembly/GAC being a website?
  3. I can simply copy test server web.config to production w/o using any IIS UI for rules part and It should work.
  4. Also will the application need to be restart from IIS after web.config change? or new change comes into affect by itself on saving web.config?

Is this correct? or will I need anything else to do? I am afraid will web.config change make any assembly changes/dll/version or any other changes that I should think of first? As I mentioned its website project and it doesnt even have VS2008 installed on Prod. Basically I want to be sure I know what am I doing.

thank you!

  • 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-06-17T13:41:22+00:00Added an answer on June 17, 2026 at 1:41 pm

    Assuming you are in fact using IIS7 (AFAIK it is not possible to install IIS6 on Server 2008) the code above is in the syntax of that used by the IIS7 Rewrite Module. This is an extension and not installed by default with IIS, it will need to be installed separately on each server.

    1 + 2) A web site (as opposed to a web application) can either be deployed compiled or uncompiled. If the site has been compiled then there will be one or more dll files in the bin directory which contain the code to build the objects used in your site, with placeholder files for the aspx pages. The advantage of a compiled site is that it will perform faster, particularly from a “cold start” (where the site is not held in memory on the server). If the site is not compiled it will either have .aspx.cs/.aspx.vb files containing the code, or

    <script runat="server"> // code here </script> 
    

    tags within the .aspx file itself.

    3) The IIS GUI is simply an easier way of generating the rules that will be placed in the web.config file. Copying a file between servers should work, as should copying from your dev to live environments (usual rules about changing connection strings etc. to those appropriate for the live environment apply). Some devs will create rules on their dev server or local machine and deploy them in just this way. If you want you don’t have to ever touch the IIS GUI at all, but just write the rules in code. For the rules to work you will need to have the IIS 7 Rewriter module installed on each of the servers.

    4) Saving or “touching” the web.config file will force a restart of the application. In process session data will be lost (as a negative) but the rules should be working with immediate effect – no IIS reset is required.

    Changing the web.config to add new rules should not break any of your code or compiled assemblies beyond obviously damaging changes as long as the attributes and XML syntax remain valid – changing or deleting application keys or connection strings, the target framework, custom errors or debug mode will obviously all affect your site. There is no need to republish though. As XML is intentionally fragile with syntax errors I’d strongly recommend testing your changes on a non live site first, messing up a web.config is one of the fastest ways to take down an entire site.

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

Sidebar

Related Questions

I have a HtmlHelper extension method that I would like to apply some logic
I have some auto-instantiation code which I would like to apply to about 15
CSS I have some simple CSS to apply a negative text-indent value on the
I have read from some article that say's Apple doesn't approve the application which
In my application I have apply new outgoing call receiver. It is working fine.
We have a 3rd Party Piece of software that I'm wanting to apply some
I have a situation where I need to apply some filters to the query,
So I have a page I want to apply some CSS to, but it
I have a set of div-s that I need to apply some jQuery to.
In order to apply some changes to the default Recent Posts Widget I have

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.