Portal URL Rewrite

I am using portal 10.1.4, and am trying to get my url to display as www.domain.ca. However, it currently displays as: www.domain.ca/portal/page/portal/PageGroup
I am unable to get my rewrite rule to to remove the PageGroup name from the url and leave nothing in it's place.
I have tried to set my URL Rewriterule in portal as:
Search Pattern: /portal/page/portal/PageGroup
Replace Pattern: /
and my apache rule as:
RewriteRule ^/(.*)$ /portal/page/portal/PageGroup$1 [PT]
However, this setup gives me an error, and the portal pages do not display. What should I put for my rules so that that i can get rid of the extra parts of the url?

Hey Chris,
In this example the name of the page group is "www":
Our rewrite rule is also set up in a virtual host section of the httpd.conf file as well so some of the options may not be required for your set up:
RewriteEngine on
RewriteOptions inherit
RewriteCond %{REQUEST_URI} !^/(portal|pls|images).*$
RewriteRule ^(.+) /portal/page/portal/www$1 [PT]
The rewrite condition allows us to ignore the rewrite for certain items in the path. This allows the portal navigator to work. There may be a couple more items that need to be added to the condition because I recently noticed that the help pages dont function properly.
In the portal configuration for the rewrite rule we specify:
Search pattern: /portal/page/portal/www
Replace pattern:
Thats right, the replace pattern is blank.
To see it in action check out http://www.sagelogix.com
-sean
Solutions Architect
www.sagelogix.com

Similar Messages

  • URL Rewrite Rules in 10.1.4

    Hi,
    I am having some trouble rewriting the urls, I can't make it work ...
    What I want is to change the url:
    http://www.mycompany.com/portal/page/portal/portal_sverige/
    to
    http://www.mycompany.com/sverige
    Where "portal_sverige" is the page group.
    What I did was:
    Configure the properties in the page group:
    Search pattern: /portal/page/portal/portal_sweden/
    Replace pattern: /sweden/
    And I went to enterprise manager, MT, http server, administration, advanced server properties, httpd.conf, and put in the lines:
    RewriteEngine On
    RewriteRule ^/sweden/(.*)$/portal/page/portal/portal_sweden/$1 [PT]
    However, when I try to use navigator to edit a page in that group, I get:
    http://www.mycompany.com/sweden/pagename?_mode=16
    Returns:
    Object not found. (WWC-50003)
    And just typing in www.mycompany.com/sweden returns 404 error instead of the root page as I would have liked.
    Any ideas about what to do? I can't really find any information ... is the change made in the MT ? IM ? Do I have to do it in some specific order? Is the syntax wrong?
    Appreciate any help, thanks

    Hello Sayeeas,
    I posted an answer to this question a couple months back... check out the thread
    Re: Portal URL Rewrite
    Here is the answer:
    In this example the name of the page group is "www":
    Our rewrite rule is also set up in a virtual host section of the httpd.conf file as well so some of the options may not be required for your set up:
    RewriteEngine on
    RewriteOptions inherit
    RewriteCond %{REQUEST_URI} !^/(portal|pls|images).*$
    RewriteRule ^(.+) /portal/page/portal/www$1 [PT]
    The rewrite condition allows us to ignore the rewrite for certain items in the path. This allows the portal navigator to work. There may be a couple more items that need to be added to the condition because I recently noticed that the help pages dont function properly.
    In the portal configuration for the rewrite rule we specify:
    Search pattern: /portal/page/portal/www
    Replace pattern:
    Thats right, the replace pattern is blank.
    To see it in action check out http://www.sagelogix.com
    -sean
    Solutions Architect
    http://www.sagelogix.com

  • Rewrite PORTAL URL

    Hey ,
    I have a Strange Issue here . Our BI Production Landscape Consists of PORTAL and BI- ABAP ( CI + 2 App ) .
    The Hostname "bi.ril.com" is on DNS which POints to CI(ABAP) . There is a Web Dispatcher Configured on CI Which is Supposed to Route HTTP Requests to APP Servers for Load Balancing .
    Now , as per the LINK http://help.sap.com/saphelp_nw04s/helpdata/en/5f/7a343cd46acc68e10000000a114084/frameset.htm ,
    I have Performed the Mapping of URLs based on the SAP Logon Group and Request are getting ROuted to Application Servers.
    The Issue now is , When a HTTP Request goes to an APP Server the URL Generated is Somewhat like biapp##.ril.com which is Not on DNS .
    I can Put it on the DNS , but then the URL just wont be that Frindly . I am ready now the host these names on DNS .
    The Problem is , I want the CLIENT BROWSER to Display the URL as " bi.ril.com " , even though Internally it should be calling an APP Server .
    Is this EVEN Possible ???? I have Gone throught URL Rewriting , but then this feature only Rewrites the Prefixes and not the Entire URL .
    Regards,
    Ashish .A. Poojary
    Edited by: Ashish Poojary on Mar 28, 2011 8:38 AM

    Hi,
    The Issue now is , When a HTTP Request goes to an APP Server the URL Generated is Somewhat like biapp##.ril.com which is Not on DNS
    Do you speak of the URL generated from the web dispatcher to be sent to the app server ?
    If yes, I don't get this result on my system and I don't understand how you can get this.
    The URL sent to the appserver looks like http://appserver.domain.country/url
    The URL seen from the browser looks like https://webdispatcher.domain.country/url
    Regards,
    Olivier

  • Plumtree and Weblogic Portal Server | URL rewriting incompatibility

    Hi All,
    I am using Weblogic Portal as the Producer and Plumtree as the consumer for my WSRP portlets. I have enabled Producer URL rewriting. When i invoke an action URL i get a "Mode is not supported in this portlet." error. The template being passed is <blockingActionTemplate>/wsrpconsumer/pt_action?wsrp-navigationalState={wsrp-navigationalState}&wsrp-interactionState={wsrp-interactionState}&wsrp-mode={wsrp-mode}&wsrp-windowState={wsrp-windowState}</blockingActionTemplate>
    and the URL generated is a href="/wsrpconsumer/pt_action?wsrp-navigationalState=&wsrp-interactionState=_action%3D%2FnewAction1&wsrp-mode=&wsrp-windowState="
    The same portlet works fine when Consumer URL rewrting is enabled.
    Plumtree is giving the same error for the portlets at the consumer at http://sunwsrp.dyndns.org/portal/wsrp/wsdl/default. Any help would be highly appreciated
    Thanks

    Hi, I don't have an answer on this but another more basic question. Our agency is using Plumtree Portal v5. I am assigned to develop a remote portlet. According to what I've read on the web as far back as 2003 Plumtree Portal supports WSRP but I'm getting conflicting answers within our agency. This post seems to indicate that the Plumtree Portal can consume WSRP compliant remote portlets. If that is correct, can you point me to documentation/examples? I've found reference to a Plumtree resource called "WSRP Portlet Consumer" for WSRP--does that still exist? Any help would be appreciated.

  • Apache Url rewrite for portal URLs

    Hi,
    I have a requirement where i need to write simple URL's for the default portal uRL's
    for example
    inspite of using default url like "http://myserver:port/portal/server.pt/community/abc_xyz/123/efg_jkl/12345",
    if user uses
    "http://myserver:port/portal/server.pt/xyz"
    It should navigate to same default URL.
    Can somebody let me know how this can be achieved.
    I know Url rewriting is done through Apache Url rewrites but do not have an idea how apache does it with portal Url's. What configurations need to be done in order to manage portal Url's with apache rewrites.
    Thanks
    Ajay

    Hi Ryan,
    Thanks for the reply. The link shows how to write the Rewrite rules in apache. I am familier with that. The actual problem is that how can the portal Url's be controlled by apache rewrites. My apache and weblogic are both on the same server instance but after writing the rewrite in httpd.conf file. It does not work out. Just want to know how can i tell apache to handle my portal Url's too.
    Is there any specific entry that we need to make for doing this.
    Thanks
    Ajay

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

  • Search Engine Friendly URL Rewriting

    Hi,
    Has anyone done any kind of URL rewriting to convert the big, query ridden portal
    URLs to search engine friendly URLs?
    eg. Portal URL: http://somedomain/application?event=blah&pageID=blah&blah=blahblahblah
    gets converted to
    http://somedomain/pageID/page.htm or something like that.
    Any help will be appreciated.
    Thanks,
    Parag

    Filter your recordset based off text values for your table fields ex. field 'model' will have values Honda, Toyota, Suzuki, etc. and field 'color' will have values red, blue, green. etc.
    The filtered URL will be www.example.com/?model=Honda&color=red to show all red Hondas in the filtered recordset.
    Using .htacces mod_rewrite you can convert the above example to something like www.example.com/red/honda.html
    http://corz.org/serv/tricks/htaccess2.php

  • Webcenter URL Rewrite solution?

    Hello,
    There is some in-box solution for URL Rewrite in webcenter portal?
    Anyway, what to use as workaround? Apache?
    thank you.

    Did u ever tried to visit blog-
    GEORGE MAGGESSY: WebCenter Portal Pretty URL Beyond Limits
    you will find it useful.
    --Hoque

  • Url rewriting & pagination

    I am in the process of learning url rewriting, and with the help of a great book, 'Professional search engine optimization with PHP', i have got as far as rewriting category and product url's into keyword rich ones.
    example at http://www.blunique.co.uk/Earrings-C1.html
    where i am struggling is rewriting the url when i have the recordset results paginated, (using dreamweaver standard server behavior for repeat region).
    Grateful for any advice.

    Greetings,
    I'll tailgate this similar question; I could use a guide to WLP 81x URLs. What does each parameter mean in file mode (.portal) and stream mode?
    Any help here? Tips for understanding URLs would help Anders too.
    tnx, curt

  • BSP URL Rewrite

    Dear All,
    I have created one controller and URL of the controller is being called from non-SAP interface. While calling from non-SAP interface, it is giving error "BSP URL requires rewrite".
    If I call the same URL in web browser from external network, it is working absolutely fine.
    I tried using following code also to avoid URL Rewrite in my controller, still getting same error.
      RUNTIME->CONSTRUCT_BSP_URL( EXPORTING
                                    IN_APPLICATION      = 'ZBSP_EXT'
                                    IN_SUPPRESS_REWRITE = 1 ).
    Kindly suggest...
    Regards,
    Sagar

    Hi,
    the portal self displays a link for changing the language by the user. If you want to influence the language in your BSP application directly, then use parameter ?sap-sessioncmd=open&sap-language=DE in the URL.

  • Weblogic.xml: url-rewriting-enabled false

    The following heads my weblogic.xml for a WebLogic 9.2 portal web application:
    <wls:session-descriptor>
    <wls:url-rewriting-enabled>false</wls:url-rewriting-enabled>
    </wls:session-descriptor>
    <wls:context-root>intranet</wls:context-root>
    However, on the first rendering of a session, the URLs still contain the jsessionid=... session identifier.
    Is this not the correct setting to disable jsessionid injection? Or just BEA 9.2 bug #2983849299?

    Hi,
    This is the console, or your app you are talking about? This is the correct parameter to avoid jsessionid injection, but just for your app, not for the admin console. If this is you app, I found it somehow weird that the sessionid is placed in the URL, if this is the console, I do not know if there is a way to avoid it :-(
    Regards,
    LG

  • ADF application - URL rewriting

    Hello All,
    Has anyone configured URL rewriting in OHS using Apache mod_rewrite ? One of the business requirement for the ADF application we're building is to have user friend URLs like http://hostname/portal/q/myquotes.do instead of default URLs like http://hostname:7777/portal/faces/quote/myquotes.jspx. It would be of great help if you've any useful suggestions. Please let me know.
    Thanks in advance for your help.
    -Vijay

    Weblogic has a module for OHS which takes care of simple requirements of forwarding.
    Entry in httpd.conf is something like this (i am using cluster):
    <IfModule mod_weblogic.c>
         WebLogicCluster 172.23.210.13:7003,172.23.210.22:7005
         MatchExpression /console
    </IfModule>
    mod_rewrite will be no different from normal. As in nothing special for ADF/Weblogic app server.
    Venkat

  • Supress URL rewriting through gateway for specific URL's ??

    I want to know how to supress URL rewriting for some spcific URL's. Currently the property "Rewrite All URL's" is set to true in the gateway profile.
    Default ruleset is applied on to the rewriter during installation. Do I need to write a ruleset to achieve this ?? If yes, how to approach onto developing this ruleset.
    Please help.
    Thanks.

    I don't think what you ask is possible, but the reverse is.
    Do not select Rewrite All URL's. In my knowledge it really is all and no exceptions possible. BTW The ruleset define what's inside HMTL etc., not which links are to be rewritten.
    Solution:
    In Admin console:
    Service Management -> Gateway-> <your gateway profile> ->Proxies for Domains and Subdomains
    Fill this with the domains you want rewritten. All other domains are not rewritten.
    Lemme know if this helps.
    This site (and the Sun One Portal) needs feedback!
    Ronald

  • Invoke VC application with URL-rewriting

    Hi Guru's,
    is that possible, visual composer application with an initial value in form of URL-rewriting to start, for example:
    http://localhost:50100/webdynpro/dispatcher/sap.com/test~helloworld/testVC?id=11234324
    can the value of "id" be taken as an "input" and passed to the VC application that has to be invoked?
    thx
    hao

    Hi,
    You want to pass the Values to VC Application using Url right?
    if yes blog is soln.
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a]
    Regards,
    Govindu

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

Maybe you are looking for

  • Can't Airplay to Apple TV 2 after updating to iOS 7.1

    I have updated my iPhone 5 and my iPad 2 to iOS 7.1, and AirPlay no longer works to my Apple TV 2. I can't mirror, I can't AirPlay from YouTube, and I can't display photos from my phone or iPad to my Apple TV 2. On both devices, the AirPlay icon show

  • Use of Configuration file in other appliance

    We have a disaster recovery ESA which needs to be in-sync with the production ESA. All the appliances are C670s. Is there an easier way to synchronize both production and DR appliance other than clustering? Can configuration file from production ESA

  • Text variables with multiple lines

    Like in my other question: we typeset a lot of juridical books. We use text variables in the header for showing the current chapter and for example current author of that chapter. So we let the paragraph style of the chapter show in the header. When

  • Explain statspack values for tablespace & file IO

    10.2.0.2 aix 5.2 64bit in the Tablespace IO Stats & File IO Stats section of statspack and awr reports can someone help to clear up a little confusion I have with the value for AV Reads/s & AV Rd(ms). I'll reference some values I have from one of my

  • Quarterly Patches for OEM

    Greetings, I have completed the upgrade/installation of OEM 12.1.0.3.0 and most of the agents. My OMS and repository are on separate Linux servers. I am now faced with applying quarterly patches to my installation. The RDBMS is not an issue, it is th