Solved

URL Rewrite Module for IIS

Posted on 2012-04-11
6
761 Views
Last Modified: 2012-04-16
Hi to all,

I am working off the following tutorial:
http://learn.iis.net/page.aspx/461/creating-rewrite-rules-for-the-url-rewrite-module/

I am having a lot of trouble redirecting my url to the destination I need to. Here is the url I need to redirect:
https://mysite.com/OfficeSupply/DXR.axd?r=0_193-f8_D3

I need to redirect the above url to the following:
https://mysiteOtherSite.com/portal/server.pt/gateway/PTARGS_0_2_3829_435_0_43/DXR.axd?r=0_204-f8

How would I fill this in by using the URL Rewrite UI for IIS?

Thanks
0
Comment
Question by:ALawrence007
  • 3
  • 3
6 Comments
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 37836056
url rewrite rules assumes something is in common, you have nothing in common, ergo you have to map it by itself.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="URL Rewrite Module for IIS" stopProcessing="true">
                    <match url="https://mysite.com/OfficeSupply/DXR.axd?r=0_193-f8_D3" />
                    <action type="Redirect" url="https://mysiteOtherSite.com/portal/server.pt/gateway/PTARGS_0_2_3829_435_0_43/DXR.axd?r=0_204-f8" logRewrittenUrl="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
0
 

Author Comment

by:ALawrence007
ID: 37837844
ve3ofa,

Thank you for the reply.

Being completely new to this... Where do I enter the information you provided?

Thanks
0
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 37838765
Like so
0
Independent Software Vendors: 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!

 

Author Comment

by:ALawrence007
ID: 37838852
I think I am missing something.

There is no sound with this screencast... Half way through it goes to a black screen and then the last 7 seconds there is a message on the screen stating "You might want to do this instead".

I would love to be able to see the screen cast because it looks like it is addressing my issue head-on.

Thanks
0
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 37839376
0
 

Author Closing Comment

by:ALawrence007
ID: 37852566
Thanks ve3ofa
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project

713 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