Solved

URL Rewrite Module for IIS

Posted on 2012-04-11
6
749 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 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
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
Comment Utility
ve3ofa,

Thank you for the reply.

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

Thanks
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
Like so
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:ALawrence007
Comment Utility
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 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:ALawrence007
Comment Utility
Thanks ve3ofa
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

16 Experts available now in Live!

Get 1:1 Help Now