Solved

URL Rewrite Module for IIS

Posted on 2012-04-11
6
756 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 79

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 79

Expert Comment

by:David Johnson, CD, MVP
ID: 37838765
Like so
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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 79

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WebSite Direction 1 41
IIS redirect 1 68
SharePoint 2013 to SharePoint Online migration:  (links) 2 33
Switching Visual Studio 2015 to normal debug display 3 26
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 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