Solved

IIS 7.0 - Rewrite rule to another web site

Posted on 2013-01-25
3
393 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 77

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

19 Experts available now in Live!

Get 1:1 Help Now