Solved

IIS URLRewrite

Posted on 2014-11-04
3
126 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
  • 2
3 Comments
 
LVL 21

Expert Comment

by:MogalManic
Comment Utility
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
Comment Utility
Admin, please close this question. I decided to do different way.Thanks.
0
 

Author Closing Comment

by:DentonDIS
Comment Utility
I decided to use a different way.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

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

9 Experts available now in Live!

Get 1:1 Help Now