Solved

IIS 7.0 - Rewrite rule to another web site

Posted on 2013-01-25
3
386 Views
Last Modified: 2013-02-01
Hello,
I'm trying to redirect http://mysite.com/blog to http://10.10.10.10.

I'm trying to make it run but I got time to time depending how I change my configuration : 404, 403.12 error.

It seems for me that the IIS do not transform my request.

Here is my rule :
        <rewrite>
            <rules>
				<rule name="Blog" enabled="false" stopProcessing="true">
                    <match url="blog/(.*)" />
                    <action type="Rewrite" url="http://10.10.10.10/{R:1}" logRewrittenUrl="true" />
                    <serverVariables>
                        <set name="HTTP_ACCEPT_ENCODING" value="none" />
                    </serverVariables>
                </rule>

Open in new window


any would be very appraciate.
0
Comment
Question by:Sybux
  • 2
3 Comments
 
LVL 76

Expert Comment

by:arnold
ID: 38821567
Your blog rule is disabled (enabled=false)

The rule will trigger on any URL that has blog/ in the path.
0
 

Accepted Solution

by:
Sybux earned 0 total points
ID: 38824062
the problem was not the false / true (I've copied the wrong state :) )

But finally I've found the problem. To get rewrite rule working with "http redirect" you need to install the following extensions :
URL rewrite
Web Farm Framework
ARR
External Cache

some docs can be found here : http://blogs.iis.net/ruslany/archive/2009/04/08/10-url-rewriting-tips-and-tricks.aspx
0
 

Author Closing Comment

by:Sybux
ID: 38843066
founded myself the problem and specified informations for others
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now