Solved

IIS URLRewrite

Posted on 2014-11-04
3
138 Views
Last Modified: 2014-11-13
Is it possible to redirect http://server1/folder1 to http://server2/folder1 using URLRewrite if we do not have "folder1" on the server1 and we do not want to create it?
If that is possible, could you tell me to achieve it with URLRewrite?

Thanks,
Budj
0
Comment
Question by:DentonDIS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Expert Comment

by:MogalManic
ID: 40424277
URLRewrite (http://www.iis.net/downloads/microsoft/url-rewrite) is an IIS module that translates this: http://mySite/article/342/some-article-title
to:
http://MySite/article.aspx?id=342&title=some-article-title.

You still have to write the article.aspx page to query the database to retrieve the article.

What you want is some sort of redirect.  You can either trap the 404 error on a custom page, or have a handler that redirects the user to the new page.

Another possibility would be to use the Server.Transfer to have the alternate URL render the page contents without having the client redirect to the other server (i.e. the client will still think you are on server1)
0
 

Accepted Solution

by:
DentonDIS earned 0 total points
ID: 40430480
Admin, please close this question. I decided to do different way.Thanks.
0
 

Author Closing Comment

by:DentonDIS
ID: 40439488
I decided to use a different way.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
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 video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

688 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