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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:41:32+00:00 2026-06-13T01:41:32+00:00

I am using iis7’s URL Rewrite module to accomplish several things: 301 redirect rule

  • 0

I am using iis7’s URL Rewrite module to accomplish several things:

  • 301 redirect rule from non-www to www
  • 301 redirects rule .info to .com (moved to the .com version of my domain)
  • 301 redirects rule from an old page e.g. /page-name.asp to just /page-name

I have been able to combine the first two into one rule, and the 3rd item is it’s own rule. The problem is that two 301 redirects are generated in a case of requesting a url like:

site.info/page-name.asp/

First a 301 is done to:

http://www.site.com/page-name.asp (e.g. www is added and .info goes to .com)

Then a second 301 is done from that to:

http://www.site.com/page-name

My question is: how can I combine these so that only ONE 301 redirect occurs instead of two? Here are the two rules as they currently sit in my web.config:

<rule name="SEO - 301 Redirect - .info to .com AND force WWW" stopProcessing="false">
    <match url="(.*)" ignoreCase="true" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
        <add input="{HTTP_HOST}" pattern="^site\.info$" />
    </conditions>
    <action type="Redirect" url="{ToLower:http://www.site.com/{R:1}}" redirectType="Permanent" />
</rule>
<rule name=".aspVersion-to-friendlyvia301" stopProcessing="false">
        <match url="(.*).asp" />
        <action type="Redirect" url="{R:1}" />
</rule>
  • 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-13T01:41:34+00:00Added an answer on June 13, 2026 at 1:41 am

    I seem to have found the answer to my own question. It is a bit of a hack but accomplishes all required url transformations (e.g. trailing slash removal, non-www to www, toLowerCase, removal of default document for directories, and any other redirects necessary such as a page name change).

    The problem I was talking about is actually called “chaining of 301 redirects”, and the solution is presented rather elegantly, here:

    http://www.seomoz.org/blog/what-every-seo-should-know-about-iis#chaining

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

Sidebar

Related Questions

I'm using the iis7 URL Rewrite module and it's working fine, except for two
Using IIS7 URL rewrite module, I am trying to get the value of a
We are using IIS7 URL rewrite module with asp.net C#, all of the URLs
Using Multisite WordPress (3.3.2) on IIS7 with the standard URL Rewrite rules causes issues
i am currently using IIS7's Url Re-write module, but the main loophole of using
IIS7 supports this by using <system.webServer> configuration element to set module's preCondition=managedHandler attribute. Since
I have a server with IIS7 that I am using to host several different
I'm using ASP .NET rewriteModule to rewrite http://example.com to http://www.example.com . <section name=rewriteModule type=RewriteModule.RewriteModuleSectionHandler,
I'm trying to rewrite urls from the form: https://example.com/about to the form http://example.com/about using
I am using IIS7 URL rewriting with my website which is written in ASP.NET.

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.