URL rewriting issue

Hello all,
I am having a url rewriting issue where the first time someone accesses the website with a browser that has cookies enabled my jsp pages will still encode all of the URL's with the jsessionid. Which I believe should not happen unless cookies are disabled.
Why is this occuring?
Once the user goes to another page in the site or the second time they bring up the site in the same browser the jsessionid is not written to the URL links. This only happens on first access.
I am using Tomcat 5.5
response.encodeURL() to encode the links
Is this a container or programming error?
Thank you all very much for your time in reading this!

Ok, thank you.
Based on this: http://www.sciabarra.com/fatwire/2011/04/17/improving-the-firstsiteii-url-assembler/
I think my approach would work if I remove the Asset API stuff from here and put them into a helper class, which would be then called from the wrapper JSP.
I'd rather not install 3rd-party extensions just for url rewriting, at least not yet...

Similar Messages

  • Url rewriter issue

    Hi,
    Has anyone come across problems with PS when viewing web sites built
    using cold fusion and utilising frames? Our iPS (3.0 sp3) seems to
    always insert the following text:
    "Connection: close
    Content-Length: 7190"
    This is all that seems to happen when browsing a CF site without frames,
    however, sites using frames will not work properly (if at all).
    Any help greatly appreciated.
    Graeme.

    Graeme,
    Yes, there is a definite problem with iPS and ColdFusion below version 5.x
    running IIS (the Microsoft Web server). Both iPlanet and Macromedia are
    aware of this problem (as we discovered it and pointed it out to them in
    June).
    I hope that this information helps you to solve your problems!
    Regards,
    Adam Farquhar.
    >
    >
    Has anyone come across problems with PS when viewing web sites built
    using cold fusion and utilising frames? Our iPS (3.0 sp3) seems to
    always insert the following text:
    "Connection: close
    Content-Length: 7190"The following is an old note that describes the problem and a work around.
    The cause of the problem turns out to be that ColdFusion on IIS returns an
    incorrectly formated HTTP header. This has been fixed in CF 5.0.
    Macromedia appeared to have no plans to patch their 4.x application server.
    iPlanet appears to have no plans to accomodate incorrectly formated HTTP
    headers of this sort in the portal server.
    Fortunately, there is a simple patch to the ColdFusion application, if you
    have access to it.
    ==========
    The iPlanet Portal Server has an unfortunate interaction with certain
    application and http server combinations. This includes the ColdFusion 4.x
    application server together with the Microsoft Internet Information Server
    (IIS). The Portal Server inserts the string 'Content-Length: XXX' at the
    first blank line in the HTML code returned by the application server (where
    XXX is replaced by the number of characters between that point and the end
    of the HTML). The consequence of this varies depending on where the first
    blank line occurs. It may result in no apparent change, in the
    content-length line appearing in the page that the user sees, or even in an
    error on the page (e.g., if it is inserted into javascript code).
    Workaround:
    For any ColdFusion application running under IIS, insert the following HTML
    comment into the very top of each ColdFusion template that a browser may
    request:
    <!-- Blank line to satisfy the iPlanet Portal Server
    -->
    Ensure that there is no blank line prior to the start of the comment.
    Verify this be examining the HTML source in a web browser. I recommend
    placing this the HTML comment into the Application.cfm tag, which is run
    prior to any specific user request. You also need to catch any calls to
    CFCONTENT reset=yes. Depending on other settings, it may be necessary for
    you to place the comment in a CFOUTPUT tag:
    <cfoutput><!-- Blank line to satisfy the iPlanet Portal Server
    -->
    </cfoutput>

  • 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 ).

  • 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.

  • URL Rewrite Rule: HTTP to HTTPS Not Working

    Here is my problem. I cannot get HTTP to HTTPS redirect to work using the URL Rewrite module. I am using version 2, by the way, which I understand is the latest version. I've also enabled the "Proxy Server" and Application Request Routing"
    features.
    I've trolled through the Internet for 2 days now for solutions to my problem, including the ones provided by the TechNet forums and by MVP Scott Forsyth. I've tried over 30 solutions, and none have resolved my issue. Granted some of the solutions I've tried
    may have been repeats of others. After trying so many, I have had a hard time discerning the differences. Does it really matter, for instance if the pattern match for the {HTTPS} input is specified as
    "^off$" or just "off"? I see this discrepancy (among others) everywhere. It seems like there are so many variations out there. It is quite confusing for the uninitiated and the newbies like myself to the
    URL Rewrite technology. I have enabled and consulted my "Failed Request Tracing Rules" logs but cannot make any sense of the cryptic information it is providing.
    I just cannot get my reverse proxy server to redirect http requests from the Internet to https to my internal web server. When a user specifies "https://server1.xxxxx.com". he is able to access the internal server via the reverse proxy (IIS) server.
    But when he specifies "http://server1.xxxxx.com" he receives "Server Error 500 - Internal server error.There is a problem with the resource you are looking for, and it cannot be displayed."
    At this point I am at my wits end, and am even considering configuring the protocol translation on our firewall. But this not my preference as it presents another layer of complexity, and device to troubleshoot later on. Below I've pasted my entire web.config
    file with my most current version of the rule in question (in bold) for your review. I started to paste just the specific rule, but thought you might need to see the entire file in case something else may be conflicting with the rule.
    Thank you in advance for your help.
    Dave Robinson
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                  <rules>
                    <clear />
    <rule name="HTTP to HTTPS Redirect" enabled="true" stopProcessing="true">
                    <match url="(.*)" />
                   <conditions>
                      <add input="{HTTPS}" pattern="off" />
                    </conditions>
                      <action type="Redirect" url="https://{HTTP_HOST}/{REQUEST_URI}" redirectType="Found" />
                    </rule>
    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{CACHE_URL}" pattern="^(https?)://" />
                        </conditions>
                        <serverVariables>
                            <set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />
                            <set name="HTTP_ACCEPT_ENCODING" value="" />
                    </serverVariables>
                        <action type="Rewrite" url="{C:1}://server1.xxxxx.com/{R:1}" />
                    </rule>
                </rules>
                <outboundRules>
                    <rule name="RestoreAcceptEncoding" preCondition="NeedsRestoringAcceptEncoding">
                    <match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.*)" />
                    <action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" />
                    </rule>
                    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                        <match filterByTags="A, Form, Img" pattern="^http(s)?://server1.xxxxx.com/(.*)" />
                        <action type="Rewrite" value="http{R:1}://server1.xxxxx.local/{R:2}" />
                    </rule>
                    <preConditions>
                        <preCondition name="ResponseIsHtml1">
                            <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                        </preCondition>
                        <preCondition name="NeedsRestoringAcceptEncoding">
                            <add input="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" pattern=".+" />
                        </preCondition>
                    </preConditions>
                </outboundRules>
            </rewrite>
            <tracing>
                <traceFailedRequests>
                    <add path="*">
                        <traceAreas>
                            <add provider="ASP" verbosity="Verbose" />
                            <add provider="ISAPI Extension" verbosity="Verbose" />
                            <add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,WebSocket"
    verbosity="Verbose" />
                        </traceAreas>
    <failureDefinitions timeTaken="00:00:00" statusCodes="404" />
                    </add>
                </traceFailedRequests>
            </tracing>
            <httpErrors errorMode="Custom" />
            <httpRedirect enabled="false" destination="" exactDestination="false" childOnly="false" httpResponseStatus="Permanent" />
        </system.webServer>
    </configuration>

    On Wed, 28 Jan 2015 17:53:41 +0000, dwrobins2000 wrote:
    Here is my problem. I cannot get HTTP to HTTPS redirect to work using the URL Rewrite module. I am using version 2, by the way, which I understand is the latest version. I've also enabled the "Proxy Server" and Application Request Routing"
    features.
    Web/IIS related issues are better posted where the IIS experts are:
    http://forums.iis.net
    Paul Adare - FIM CM MVP
    "The equivalent of treating dandruff by decapitation"
    -- Frank Zappa on the Parents Music Resource Center' censorship plans

  • URL rewriting for a WebService Consumer Proxy

    Hi all,
    Did anybody come across this issue?
    I have a SAP System - let's call it "TM" -  that I want to bind with another non-SAP one - let's call it "FB" - without any PI between them.
    The communication is made as a Service Consumer (TM side), the Proxy (see image below) and Proxy-Implementation Class being generated automatically after the ".wsdl" file and the "url" given by the documentation of FB.
    Everything looks good! All the Methods (operations) that are available from the service have been added to the Implementing Class.
    After the Proxy generation, I also created the Logical Port (in transaction SOAMANAGER - see image below) where the path, host, prefix, and all the necessary stuff were also automatically created after the ".wsdl" document.
    So far so good! When I want to test it and to play along with this connection TM -> FB, I am creating the Proxy-Object, I am filling the required User / Pass / and an ID in order to call the first method. As you have probably guessed already: LOGIN.
        ls_in_login-login_request-id             = '...some ID...'.
        ls_in_login-login_request-user          = '...some user ...'.
        ls_in_login-login_request-password  = '...some password'.
    TRY.
             CREATE OBJECT lo_proxy
               EXPORTING
                 logical_port_name = 'ZAS_PORT_FB'.
         CATCH cx_ai_system_fault INTO lo_ref.    " Application Integration: Technischer Fehler
    ENDTRY.
       TRY.
           CALL METHOD lo_proxy->login
             EXPORTING
               input  = ls_in_login
             IMPORTING
               output = ls_out_login.
         CATCH cx_ai_system_fault INTO lo_ref.    " Application Integration: Technischer Fehler
         CATCH cx_ai_application_fault INTO lo_ref.    " Application Integration: Applikations Fehle
    ENDTRY.
    As a response, (meaning that the connection works and that the WebService acknowledges the connection) I get a "SessionID" -> a string of characters.
    In the Wiki of the Service is written that from this point on, every other methods (but I mean ALL of them, logout() also...) need to be called along with this SessionID. The problem is, that this SessionID doesn't have a specific place in the "inbound"-structure of the methods, but this mechanism of passing around the SessionID must be made with URL rewriting. Another solution would be to use COOKIES. From my point of view, a so-called URL rewriting would be easier, right?
    In the documentation is the following info written:
    URL rewriting (recommended):
    The JSessionId is attached to the URL of the SOAP request, as follows:  http://[URL];jsessionid=[jsessionid]
    Caused by tecnical reasons, it is necessary to specify the static string “;jsessionid=” in lower case letters.
    I have turned this "LO_PROXY" object around and around and around... trying to find a solution... a method...anything that would let me rewrite the URL, but nothing...
    I have also tried to use ce CL_HTTP_CLIENT class and to create myself the client and the URL and the host and everything manually... but in this case how do I end up in calling a specific "custom" method -> for instance... how do I call the "LOGIN"... or the LOGOUT...where do I put the parameters, etc?
    Do you have any suggestions / ideas / hints ?
    Thanks a lot in advance!
    Warm regards,
    Alex

    Hi Stefan,
    You are right! It doesn't support to set URL / HTTP parameters outside the logical port.
    Nevertheless, I have debugged the whole engine and found out that via custom coding (enhancements / modifications) and with extreme attention, the URL can be rewritten as desired.
    When a method of the proxy is called, let's say for instance: lo_proxy->logout (...) - as written up for example, the method CL_HTTP_CLIENT=>CREATE_BY_URL is called dynamically.
    In this method, in the "url" variable is the desired URL that needed to be rewritten.
    Here it's about an importing parameter, so it cannot be changed so easily, but it's not impossible.
    Another place where a nice Enhancement can be created is at the beginning of the FM "SWLWP_URI_PARSE".
    You need to be very careful not to change these places in all cases (this CREATE_BY_URL will be called pretty much), JUST when the specific conditions are fulfilled.
    Have a great day / week!
    Warm regards,
    Alex

  • WCF Url Rewriting using global.asax

    Hello,
    I am doing Url Rewriting using global.asax but getting below error message. 
    Description: HTTP
    404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 
    Requested URL: /Services/MyService.svc/rest/CheckInternet
    I tested service. its working fine without url rewriting. 
    please help me to solve this issue. 
    Please "Mark as Answer" if this post answered your question. :)
    Kalpesh Chhatrala | Software Developer | Rajkot | India
    Kalpesh 's Blog
    VFP Form to C#, Vb.Net Conversion Utility

    Hi Kalpesh Chhatrala,
    I wonder if you are using the WCF Soap Service or the WCF Rest Service.
    Since your WCF Service works very well without the URI Rewriting, then it seems that you have do something wrong during the process of the URI Rewriting, so please try to refer to the following articles about how to do the URI Rewriting
    for the WCF Service:
    http://blogashwani.blogspot.com/2013/02/url-rewriting-for-wcf-service.html .
    http://blogs.msmvps.com/abu/2008/12/22/url-rewriting/ .
    http://blogs.msdn.com/b/endpoint/archive/2008/08/22/rest-in-wcf-part-ix-controlling-the-uri.aspx .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • URL Rewriting Session ID Length in iPlanet Application Server

    Hi there,
    Does anyone know what the maximum length of the session ID value is when
    using URL rewriting/encoding for session tracking (i.e.: ";jessionid=1234"
    appended to the end of the URL) with iPlanet Application Server 6.0's
    servlet container (or any previous versions)?
    Does the length vary or is it fixed? And does WebSphere encode server or
    failover information into the ID? WebLogic for instance, encodes the
    primary and secondary failover servers into the ID when running in a
    cluster)?
    And finally, is there any way to restrict or specify the maximum length of
    the session ID?
    I ask this due to a limitation with some WAP clients & gateways which
    prevents the URL from exceeding 128 characters.
    Any info on this issue from iPlanet staff or anyone else is much
    appreciated.
    <background-info>
    Please see the following links if you'd like some additional background:
    http://e-docs.bea.com/wls/docs60/////wap/wapdev.html#1024984
    under the heading "Session Tracking" at the bottom
    http://groups.google.com/groups?hl=en&safe=off&th=eb7f38aa5086972e,13&seekm=
    8gaki8%247d5%241%40newsgroups.bea.com#p
    </background-info>
    Regards,
    Sasha Haghani

    Sasha Haghani wrote:
    Hi there,
    Does anyone know what the maximum length of the session ID value is when
    using URL rewriting/encoding for session tracking (i.e.: ";jessionid=1234"
    appended to the end of the URL) with iPlanet Application Server 6.0's
    servlet container (or any previous versions)?
    I'm fairly certain that it is fixed. 18 for the attibute, 16 for the value, plus
    1 for the equals. (Plus 1 for the ? if it didn't already exist.)
    So 35 or 36 depending on how you count it. Someone needs to verify this and
    check my counting though.
    >
    Does the length vary or is it fixed? And does WebSphere encode server or
    failover information into the ID? WebLogic for instance, encodes the
    primary and secondary failover servers into the ID when running in a
    cluster)?I don't know what WebSphere does. iAS does not encode failover information in
    the ID. Because of the way session is propogated, no server information needs to
    be embedded in the id.
    >
    And finally, is there any way to restrict or specify the maximum length of
    the session ID?No.

  • URL rewriting using JSTL

              We are trying to use URL rewriting using JSTL. We have some problems facing URL
              rewriting. The issues we have are
              (1) We use absolute URLs
              (2)Some times we have situations based on certain input field validations
              we use
              javascript to perform URL rewriting based on the input by the user.
              Have anyone done URL rewriting using JSTL (absolute URL versus relative URLS)
              Regds
              Guna
              

    Hi
    Kalpesh Chhatrala,
    If this issue still not resolved, please consider to post in WCF forum.
    Here is the link
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=wcf
    Now i will move your thread to Off-topic forum. If you have any other issues about C#, please feel free to post in this forum. Thanks for your understanding.
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ACE module SSL url rewrite and path rewrite

    Hi all,
    I'm hoping some of you helpful people on this forum can guide me or suggest a solution to a problem I'm faced with.
    I am currently load balancing exchange 2010 traffic via an ACE module.  Software version is A2(3.3).  I have most parts of it working fine however I am having an issue when it comes to SSL termination for Outlook Web Access (OWA).
    The problem comes down to a HTTP header (field is location).  I have configured an action list to re-write the SSL pure URL as per page 96 of the "Cisco Application Control Engine Module SSL Configuration Guide".  example:
    ssl url rewrite location bnecas\.mycompany\.com sslport 443
    That part works, the http header location field that comes back from the GET request is changed to https://cas.mycompany.com which is great.  However, in addition to that url, there is also a path or something following that part.  The actual string that is returned is:
    https://cas.mycompany.com/owa/auth/logon.aspx?url=http://cas.mycompany.com/owa/&reason=0
    The first bit of it, (https://cas.mycompany.com) is changed by the ssl url rewrite command, however the last part (http://cas.mycompany.com/owa/&reason=0) isn't changed.
    This is where I've been trying to get the http Header Rewrite command to do something.  I don't know if it can work in conjunction with the ssl url rewrite function however with the ssl rewrite function it seems it can't change bits of the string that aren't the pure URL at the front.
    The end result is that while I have an SSL connection to the OWA login page, when I do login to OWA it reverts back to HTTP.  I'm fairly sure it is because of the last part of the location string above.  Is there a way to change that location string to do the following:
    1.  change the first part of the string to be https://cas.mycompany.com (like the ssl url rewrite function)
    2.  change the last part of the location string to put https in there instead of http
    Ideally I would love to have this string
    http://cas.mycompany.com/owa/auth/logon.aspx?url=http://cas.mycompany.com/owa/&reason=0
    replaced with this one
    https://cas.mycompany.com/owa/auth/logon.aspx?url=https://cas.mycompany.com/owa/&reason=0
    I had originally tried the following in the action list:
    header rewrite response location header-value "(owa/auth/logon\.aspx\?url=)http(://bnecas\.thiess\.aus/owa/&reason=0)" replace "%1https%2"
    ssl url rewrite location bnecas\.mycompany\.com sslport 443
    but it didn't work.  I'm probably screwing up the regex somewhere however there doesn't seem to be very clear examples anywhere I can find.
    Any help will be greatly appreciated and of course I will be sure to rate every post that responds to my plea for help.
    Brad

    Hi Brad,
    try this:
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    action-list type modify http X
      header rewrite response Location header-value "http://(.*url=)http://(.*)" replace "https://%1https://%2"
    we wont be using ssl url rewrite in this case
    Also we will be needing persistence rebalance applied through application parameter map and apply that under the VIP class

  • Bad URL rewriting on redirect

    We're having a problem with URL rewriting when we call a
    response.sendRedirect(). We're forcing the system to maintain session
    through the URL (NoCookie=1) and it usually works fine, but on redirects
    the session info is added with the & code instead of simply a &, which
    sometimes leads to lose the session or other params. Has anybody a solution
    or idea for this?
    We're using iAS 6.0 SP2 for Win NT and this is a sample of a rewritten URL:
    http://server/nasapp/app/servlet?hidPage=1&GXHC_gx_session_id_=72f76904d
    2fb143e&GXHC_GX_jst=90c77278662d6164
    Thank you
    Francesc X. Gil
    SPOC, S.L.
    mailto:[email protected]
    http://www.spoc.com

    Another bug in iAS Sp2 .....
    URL based session tracking doesn't work properly in iAS sp2 (one of my many
    case tracker issues are dedicated to this irritating bug). The bug that I
    found appeared when performing an form post using method=post to a servlet.
    Then I get a HTTP error 402 (unauthorized).
    The problem should be fixed is SP3, just like a hole heap of other bugs.
    "Quico Gil" <[email protected]> wrote in message
    news:9hup3e$[email protected]..
    We're having a problem with URL rewriting when we call a
    response.sendRedirect(). We're forcing the system to maintain session
    through the URL (NoCookie=1) and it usually works fine, but on redirects
    the session info is added with the & code instead of simply a &, which
    sometimes leads to lose the session or other params. Has anybody asolution
    or idea for this?
    We're using iAS 6.0 SP2 for Win NT and this is a sample of a rewrittenURL:
    >
    >
    http://server/nasapp/app/servlet?hidPage=1&GXHC_gx_session_id_=72f76904d
    2fb143e&GXHC_GX_jst=90c77278662d6164
    Thank you
    Francesc X. Gil
    SPOC, S.L.
    mailto:[email protected]
    http://www.spoc.com

  • Wordpress IIS URL Rewrite affecting Exchange

    I have just installed Wordpress on my Windows Server 2012 Server, which Exchange Server 2013 is also installed on. After changing the URL rewrite in IIS to allow permalinks I can no longer access exchange mailboxes via Outlook or OWA.
    Does anyone have any suggestions on this issue?

    I wouldn't install any other app which uses IIS on the server where I have Exchange 2013 unless it is tested by Vendor with Exchange....
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • 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

  • URL-Rewriting or append query string in URL

    Hi
    I have one other quetion related to my project I am working and need to finish tonight.
    I read one table in first JSP and want to send one column, eventname to the other JSP. Can I use URL-rewriting. I need to keep the event name thruoghout too.
    Is this syntax correct..
    Please help me !!!

    Syntax is:
    <a href="ListEvents.jsp?event=eventname">Click me</a>In the JSP, there are two things you may need to do when generating the link.
    1. Encode the URL - this is needed if any arguments (in this case "eventname") might include spaces or special characters.
    2. Apply URL rewriting info if this may be needed. This will add "&JSESSIONID=xxxxx" if required.
    <%
    String link = "ListEvents.jsp?event=" + getEventName();  // or whatever gets the event name
    link = java.util.URLEncode.encode(s,"UTF-8");    // encode the event name data
    link = response.encodeURL(link);                      // add the session id if URL rewriting in use
    %>
    <a href="<%=link%>">Click Me</a>The event name is retrieved using request.getParameter("event")

  • URL  Rewriting

    Hi,
    I got a problem in URL rewriting:
    original source:
    <script language="JavaScript" src="/javascript/resselect.js"></script>
    after rewrite:
    <script language="JavaScript" src="http://gate way:89/http://xxx.com/javascript/resselect.js?scriptReferrer=http://xxx.com/"></script>
    How can I remove "scriptReferrer=http://xxx.com/"?
    Thanks in advance.
    Rick.

    I had a similar problem (Portal 6.1) and it ended up being a javascript function that was not rewriting properly. I had to add a rule to my default_gateway_ruleset.
    The function being called was Select() so the rule I added was this:
    <Function type="URL" name="Select" paramPatterns=",y" />
    Refer to the portal documentation about "Rules for JavaScript Content" rewriting:
    http://docs.sun.com/source/816-6732-10/rewriter.html
    Hope that helps you.

Maybe you are looking for

  • My video playing from itunes will nto stop lagging?

    None of my videos are playing on itunes, they all keep lagging and freezing. This has been since the newest version of itunes.

  • Through code, text value is not reflecting on pdf document

    Hi, Overview of issue. I layed few textbox(annotaion) on pdf and through .net code i am trying to update the value  but it is not reflecting on pdf document. code as below Acrobat.AcroApp AcrApp = new Acrobat.AcroApp(); Acrobat.AcroAVDoc AcrAvDoc = A

  • Incorrect display of table

    Hey all, I have a problem with the display of my table. I have a category table with category id , name, and description. The records for category id and name display perfect but in the description i have the categoryid,name, and description...here i

  • Preparing the schedule in other language

    Hi! Can anybody please kindly guide me how to wirte the activities in Arabic font (other than English), as i have to prepare a schedule in Arabic Font and i cannot do it in P6 and aslo when i import the schedule form P3 to P6 in Arabic font, it canno

  • Urgent :data packet problem

    data packet problem Posted: May 24, 2006 1:20 AM        Reply      E-mail this post  Hi All, Record 1 :Time conversion from 0CALDAY to 0FISCPER (fiscal year ) failed with value 20051212 This problem from 0PP_C05 Datasource assign : 2LIS_04_P_COMP THA