IIS 7.5 URL Rewrite: Hit specific page of a web application but should be redirected to another application's page

I have deployed 2 different web application on IIS 7.5 running on Windows Server 2008 R2 but on different port numbers i.e. one application deployed on port no. 1776 and another on 8091. I want to rewrite URL in such a way that if i hit any page of first
application such as default.aspx then it will be redirected to particular page of another application along with some changes in url.
Example: if i access any page from first application like:
http://g2wv126rbsc:1776/sites/main/commercial/commercial-solutions/financing/default1.aspx
then it should redirect to specific page of another application along with some changes in url:
http://g2wv126rbsc:8091/main/commercial/commercial-solutions/financing/default2.aspx
Note: In above mentioned url, also removed "sites".
I tried to create a inbound rule through URL Rewrite module (installed on IIS 7.5) by selecting Action as "Rewrite" but didn't find any success.
I need some examples if anyone has come across same kind of issue.
Thanks in advance.

Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net ).

Similar Messages

  • Server 2012 R2 essentials url rewrite to exchange 2013 breaks remote web workplace

    Hi all
    Have a server 2012 r2 with essentials experience installed and an exchange 2013 sp1 on a member server.
    I have 2 certificates
    remote.domain.com for the essentials rww
    mail.domain.com for exchange owa
    I have added the administrator account to enterprise admins and have joined the exchange server with the essentials connector, so it appears on the dashboard.
    Both certificates are installed correctly.
    I have installed ARR 3.0 and created a serverfarm mail.domain.com and accepted that it created url rewrite for me.
    Server farm does not have ssl offload enabled.
    The url rewrite is setup like this:
    Requested url: matches pattern, Using: Wildcards, Pattern *
    Conditions: Match All, Input: HTTPS, Type: Matches the pattern, Pattern: ON
    Action: Route to server farm
    Scheme: https://, Server farm: mail.domain.com, Path: /{R:0}
    Stop processing of subsequent rules: checked
    Now pointing protokol 443 til the IP of the essentials server and navigating to https://mail.domain.com/owa brings the owa logon page with my trusted server certificate and all.
    Everything works fine.
    If I then navigate to https://remote.domain.com/remote then the webpage should show the login to the essentials remote web workplace. 
    But instead it shows a some what crippled version, like forms and pictures missing and it is obviously not working.
    Trying to troubleshoot i changed the url rewrite from wildcards to exact match and put owa into the pattern field.
    Then my remote web workplace showed up correctly with the matching certificate and all was fine.
    But now owa shows a 404 directory not found.
    I guess I need some help on this.
    Somehow that server farm and the url rewrite, messes up my default website, with the remote site.
    Much appreciated...
    \Lars

    Lars,
    RE-Run the WSE wizard to reset the Internet settings.
    Remove ARR and URLReWrite.
    Once removed reboot.
    Install ARR and URLReWrite again by downloading.
    Do NOT configure any farm settings.
    Use the ARRConfig utility that comes with WSE:
    http://technet.microsoft.com/en-us/library/jj200172.aspx
    That TN page explains how to run the utility. Make sure you have exported the mail certificate including Public Key and Extended Properties first.
    Philip Elder Microsoft Cluster MVP Blog: http://blog.mpecsinc.ca

  • Firefox will load the web site but will not let you see the next page but I can on Internet Explorer

    When I go to wth.org jobs on firefox the first page of jobs come up but there is still 5 more pages of jobs to see. when i click the next page firefox says the page cannot be displayed. I can go to Internet Explorer and look at all the pages. what is the problem please?

    I'm not sure that I understand what you mean.<br />
    The two images at the top are animated GIF images.<br />
    What do you mean with: ''FireFox is automatically swapping toward other " http://www.free.fr" home page'' ?
    Do you mean that Firefox goes by itself to the www.free.fr if you open the leschamoisvolants.free.fr site ?

  • Why is Pages exporting .pdf for .jpg when I copy/paste into another application?

    Someone sent me a document that has pictures in it. I want to copy the whole thing and just paste it into an e-mail to post to a blog that way, but when I do it converts all of the .jpg files to .pdf files. I've tried pasting into Mail, which is native to Apple, and this happens. I've tried pasting it to gmail, a web app, and this happens, so I'm sure this is happening on the part of pages and not the applications I'm importing into. How do I change that?
    Please help! Thx
    *P.S. And just out of frustration for Pages lately (due to no new updates in 3 years), why are there so few options to change in preferences and no support for external plug-ins (like Mendeley and other reference managers that work just fine with OpenOffice)?

    d moon wrote:
    Someone sent me a document that has pictures in it. I want to copy the whole thing and just paste it into an e-mail to post to a blog that way, but when I do it converts all of the .jpg files to .pdf files. I've tried pasting into Mail, which is native to Apple, and this happens. I've tried pasting it to gmail, a web app, and this happens, so I'm sure this is happening on the part of pages and not the applications I'm importing into. How do I change that?
    PDF is the unique format available allowing Pages to transfert a mix of different objects to an other application. The fact that the app is an Apple or a third party one doesn't matter.
    I'm just surprised by the fact that copying a single jpej object give the same result under Lion. I was not remembering that it behaved this way with older operating systems.
    If you really want to pass the jpegs, you must enter in the internals of the Pages document.
    Duplicate the azerty.pages document
    rename the replicate as azerty.zip
    Double click it.
    You will get a folder named azerty.
    It will contain several files including the wanted jpegs.
    *P.S. And just out of frustration for Pages lately (due to no new updates in 3 years)
    In three years, Pages evolved from
    4.0 to 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.1
    As far as I know this means six updates.
    why are there so few options to change in preferences and no support for external plug-ins (like Mendeley and other reference managers that work just fine with OpenOffice)?
    As far as I know, Apple if ree to design its produces as it want.
    iWork is not designed as a clone of OpenOffice which is a clone of M…oSoft Office.
    Happily, one of the rules applying to Apple products design is :
    ++-+-+-+-+-+-+-+-++
    Apple Human Interface Guidelines:
    Apply the 80 Percent Solution
    During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.
    If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.
    +-+-+-+-+-+-+-+-+
    I really hope that the Pages Preferences dialog will never resemble to Office one.
    Yvan KOENIG (VALLAURIS, France)  vendredi 11 janvier 2011 10:53:47
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How do I shrink a photo in Iphoto to fit a standard 8X10 page? I read that I should right-click in the Customize Preview page, but nothing happens

    How do I shrink a photo in Iphoto to fit a standard 8X10 page?  I tried to follow Old Toad's advice to right-click the image on the Customize screen, but absolutely nothing happened.

    You must think I'm an idiot, Larry, because you have been incredibly precise about your instructions.  However, as I keep saying, when I get to the "customize" screen, and I right-click the preview image, absolutely nothing happens.  I don't know what is wrong, but I can understand why you would give up on me. I simply CANNOT get the option "fit to frame."  Thank you so much for trying.  I think I had better give up.

  • When I surf through a series of pages on a web site how use do I return to the first page quickly?

    IE allows you to use 'GO to" on the menu to return to the original page

    I now have a solution to the problem I thought I was having.   The new Safari 6.0.2 places the browsing history in the form of "tabs" just below the tool bar.  You can return to the previous window when you click on the tab.  You can also change the use of "tabs" when you select Safari/Preferences/Tabs, if you prefer not to use tabs.  Also you can return to the previous page by swiping two fingers across the trackpad as I was informed by "dominic23" in his reply.  Problem solved!   -  Welshgirl01

  • My home page is MSN and whenever I scroll down the page, the "Bing Web Search" menu drops down and covers part of the page in Windows XP. How can I prevent this from happening?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/811325''
    This only happens on the home page. The drop down appears as soon as the "Bing Web Search" at the top of the page disappears as one scrolls down the page and remains visible until I scroll all the way back to the top of the home page.

    Try to use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • My firefox keeps giving me the error page on every web site but my internet exploer is working just fine

    i have googled why fire fox keeps giving the error can not establish a connection and nothing i have found works i have unistalled it and added it back i have checked the proxy i have check the fire wall and nothing works but internet explorer works fine please help or i will have to delete it for good

    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * http://kb.mozillazine.org/Error_loading_websites

  • Using Tomcat URL rewrite valve

    http://tomcat.apache.org/tomcat-8.0-doc/rewrite.html
    Looks like the latest version of Tomcat has added support for URL rewriting similar to Apache mod_rewrite
    I can't seem to find any documentation other than the page above.
    Has anyone used this to, for example, rewrite APEX URLs from http://host:port/apex/... to http://host:port/pls/apex ?  Where should we put the RewriteCond and RewriteRule directives?
    Thanks

    I just went though this, spent about two days trying to figure out how to do with only tomcat and gave up.  I found and used urlrewrite..  The instructions are right on main page but are vague.  I've given "hints" below.  My info assumes you renamed ords.war to apex.war.   I tried to post full details of my exploits/trials/troubles using the Oracle blog but it errored out.
    http://tuckey.org/urlrewrite/
    Step 1 say to place the file in WEB-INF/lib.  For Tomcat, WEB-INF is the Tomcat application directory, mine was /opt/apache-tomcat-7.0.56.   Place in the <tomcat_app_dir>/lib directory.
    Step 2 says to edit the web.xml file, adding the config text for urlrewrite.  This file is located in <tomcat_app_dir>/ROOT/WEB-INF  Copy text and paste just above the </web-app> tag at the bottom of the <tomcat_app_dir>/ROOT/WEB-INF/web.xml file.
    Step 3 talks about editing urlrewite.xml file, which doesn't exist.  You must create this file, in the same directory, <tomcat_app_dir>/ROOT/WEB-INF. The following is the contents of mine.
    <urlrewrite use-query-string="true">
                    <note>
                     rewrite from /pls/apex to pls
                    </note>
           <rule>
                <from>/pls/apex/f\?p(.*)</from>
                <to type="redirect">/apex/f?p$1</to>
            </rule>
    </urlrewrite>
    You can check that urlrewite is working by accessing the admin/test page from the localhost....<servername>:8080/rewrite-status.  The page shows you the rule and what it thinks it's going to do.
    You now need to restart Tomcat and your old URL <servername>/pls/apex should work for your users who have bookmarked your old apex apps.  It works for the new URL as well:  <servername>/apex
    I noticed you are also referencing port numbers in your sample url.  Take a look at this blog post below, specifically step 6 and 7 to learn how to redirect to 80, so you don't have to use a port.
    Install Tomcat 7 on CentOS, RHEL, or Fedora : David Ghedini

  • Why can I not return to home page after exitting web mail?

    My home page is Virgin Media. I can log in and out of my isp's Google powered web mail but am not automatically returned to my home page and cannot access it by the 'back' button. I have to close and re-open the browser and there is often a delay before the browser re-opens.

    That's an expected behavior.  You cannot access home-shared music unless the person who shares actually has iTunes up and running.  My suggestion is all the users to make iTunes to automatically launch when the computers start.  If using Windows I believe there isn't a way for iTunes to launch and sort of hides.  If using Mac OS, iTunes can launch and hide by checking the box on System Preferences > Users & Groups > [User] > Login Items.  Hope this helps.

  • ColdFusion with IIS URL Rewrite - Page never finishes loading

    I am running CF10 on IIS 7.5 with URL Rewrite module installed.
    All the rewrite rules work perfectly and ColdFusion is returning the correct pages. In order to get the page displayed in the browser I have to manually set the 'content-length' value in Application.cfc like this:
    <cfcomponent>
    <cffunction name="onRequestEnd">
    <cfheader name="Content-Length" value="#getPageContext().getCFOutput().getBuffer().size()#" />
    </cffunction>
    </cfcomponent>
    Without this code the browser does not display the page. However, even though it is now displaying the page, it is not doing it correctly. The page never finishes loading fully and not all of the HTML content seems to be on the page.
    I have tried to add a <cfflush> tag after setting the 'content-length' but it makes no difference. I don't understand why this is happening but I know that it has happened to someone else who was using htaccess: http://forums.devshed.com/coldfusion-development-84/page-not-finishing-loading-coldfusion- and-htaccess-bug-575906.html
    Can anyone please help?

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • IIS Reverse Proxy with URL rewrite.

    Hi all, hoping to leverage the wealth of knowledge contained here.
    Any assistance would be very welcome.
    I'm having an issue getting a reverse proxy and URL rewrite working in IIS 7.0.
    I need to redirect all requests with a specific virtual directory suffix only.
    ie; https://domain.test.com/outbound/Content/query_etc
    With /Outbound/ being the trigger.
    This should be redirected to http://10.10.10.10/inbound/Content/query_etc
    While at the same time, requests without the /outbound/ suffix should be handled locally.
    I have configured the reverse proxy as described in a few articles, and have had no luck.
    Here's a snippet from my (sanitized) web.config at the site level.
    <rewrite>
    <outboundRules>
    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
    <match filterByTags="A" pattern="^http(s)?://10.10.10.10/inbound/(.*)" />
    <action type="Rewrite" value="https://domain.test.com/outbound/{R:2}" />
    </rule>
    <preConditions>
    <preCondition name="ResponseIsHtml1">
    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
    </preCondition>
    </preConditions>
    </outboundRules>
    <rules>
    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
    <match url="^outbound/(.*)" />
    <action type="Rewrite" url="http://10.10.10.10/inbound/{R:1}" appendQueryString="true" logRewrittenUrl="false" />
    </rule>
    </rules>
    </rewrite>
    To me, this looks correct, yet it doesn't work.
    With this, I get the normal 404 - Error Code 0x80070002, with the text indicating the local directory doesn't exist, so.... not being picked up by the filter for redirection.

    Hi Andrew,
    Looking at your requirements it appears you need Reverse Proxy To Another Site/Server.
    By using URL Rewrite Module together with
    Application Request Routing module you can have IIS 7 act as a
    reverse proxy.
    It seems like URL Rewrite can't re-route the request somewhere else out of the server.
    Even when you rewrite the url the actual connection remains with the server. Hence if your original server doesn't have /inbound/Content/query_etc  it will fail with 404.
    Hosting multiple domain names under a single account using URL Rewrite.
    It’s a common desire to have a single IIS website that handles multiple sites with different domain names.
    References:
    How to create a url alias using IIS URL Rewrite:
    http://blogs.technet.com/b/mspfe/archive/2013/11/27/how-to-create-a-url-alias-using-iis-url-rewrite.aspx
    Reverse Proxy with URL Rewrite v2 and Application Request Routing:
    http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
    Regards,
    Satyajit
    Please“Vote As Helpful”
    if you find my contribution useful or “MarkAs Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Content-Length header not changed after url-rewrite... yields cut page.

    We use iPlanet6 ,service pack 4. The pages that return from the servlets are
    changed by the Application Server. The Application Server adds
    GXHC_GX_jst=901a10a6662d6164& to the all the URLs (which increase the
    page's size). The problem is that Application Server does not change the
    Content-Length header in the servlet response. This yields cut pages in the
    browser (IExplorer5).
    If we don't add the Content-Length header it works fine. (I.e., The pages
    are not cut.) Our problem is that we work with mobile devices that must have
    the Content-Length header to work properly.
    Q: Do you know if there is a patch that fix the problem?
    Q: Is it possible to configure the Application Server to prevent this
    url-rewrite?
    Regards,
              Aviram

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • URL rewrite now working for SharePoint 2013 result page

    Hi,
    I have configured reverse proxy using URL Rewrite (ARR), all works fine but the rule is not processing for SharePoint 2013 result page. It still shows internal domain name and not external domain name.
    this is my web.config in internet web server
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <outboundRules>
                    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                        <match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="^http(s)?://dsplsp2013/(.*)" />
                        <action type="Rewrite" value="http{R:1}://uncep/{R:2}" />
                    </rule>
                    <preConditions>
                        <preCondition name="ResponseIsHtml1">
                            <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                        </preCondition>
                    </preConditions>
                </outboundRules>
                <rules>
                    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                        <match url="(.*)" />
                        <action type="Rewrite" url="http://dsplsp2013/{R:1}" />
                        <serverVariables>
                            <set name="HTTP_ACCEPT_ENCODING" value="" />
                        </serverVariables>
                    </rule>
                </rules>
            </rewrite>
            <urlCompression doStaticCompression="false" />
        </system.webServer>
    </configuration>
    Thanks
    Hari
    Hari

    Hi,
    According to your post, my understanding is that the rule was not processing for SharePoint 2013 result page.
    Please make sure you add the reverse rewriting rule correctly.
    For more information, you can refer to:
    Add the reverse rewriting rules (in the HTML)
    Setting up a Reverse Proxy using IIS, URL Rewrite and ARR
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • IIS Url Rewriting supported with SharePoint 2010?

    I am currently working for a client that is investigating how they can do vanity domain names for sub sites.  I don't believe this will actually work with SharePoint 2010 and believe it may put the environment in an unsupported state...however I need
    to find some sort of official MS statement saying so.
    Everything I find points me to
    http://technet.microsoft.com/en-us/library/cc261814%28office.12%29.aspx#section2  which states that "Windows SharePoint Services 3.0 does not support asymmetrical paths" however I can't find anything that says the equivalent for 2010.
    I know that web apps and AAM are the typical approaches, and now in 2010 you can do host named site collections, however they want to do sub-sites.
    Can anyone point me to any official MS statement stating that this is not support with SharePoint 2010?
    Tony Testa www.tonytestasworld.com

    We ran into the same question. Since there's no official statement from Microsoft to be found on the internet that takes away the rumors about it being supported, we set out the question with Microsoft to provide their official statement. Their
    reply was that URL rewriting is supported. Find the full reply from Microsoft at my website at
    https://www.zomers.eu/knowledge/sharepoint2010/Pages/Url-rewriting-is-supported-for-SharePoint-2010.aspx
    This link doesn't work and also directly contradicts statements from other Microsoft sources, e.g.
    http://blogs.msdn.com/b/opal/archive/2010/04/23/sharepoint-2010-search-engine-optimization-seo-tips.aspx
    where the following is stated:
    "URL Rewriting is still not supported - however url redirect is supported. We are using url redirect feature in url rewrite model."
    Please provide a link that works and/or back up your claim. Thanks.

Maybe you are looking for

  • My Iphone 4s no longer rotates the screen.  Any suggestions to fix this?

    When I rotate the phone, nothing happens.  I feel like I must have changed a setting but can't figure out what happened.

  • When i open my macbook pro the wifi connect but says no internet connection

    Every time i close my Macbook Pro (early 2011 model running OSX Lion) then open it back up the wifi will connect to the right network but says i have no internet connection this lasts for about 5-10 minutes then the internet will finally work. i know

  • Make unzip scrip run on another machine

    H i all so I came up with this little script. It's very unoptimized and I want to make the unzip part into a function. My main question is I'm copying this zip folder to another machine. Will it actually use this machine to unzip or will the work loa

  • Asset Reversal AB08 and Issue in Dep run

    Hi folks, I have done an inter company asset transfer Using ABT1N -Asset got successfully transferred and after posting 2 depreciations runs, i have cancelled the asset transfer via AB08. The asset posted values tab is showing me a reversal of previo

  • Set zoom and page display on open

    Thought I would be able to set zoom (90%) and page display (Continuous) in Acrobat Pro Properties/Initial View before distributing my LiveCycle form, but realize now I can't. What scripting would I use in LCD ES2 9.0 document targetted for 8.0 or lat