?
Solved

IIS 7.0 - Rewrite rule to another web site

Posted on 2013-01-25
3
Medium Priority
?
402 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 81

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Loops Section Overview
Suggested Courses

839 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