URL rewriting - rewriting the url to be pretty no possible?

HI,
I'm trying to rewrite a url for an Oracle portal site, in the following manner, eg:
www.xyz.com/portal/page/portal/contact-us => www.xyz.com/contact-us
I've been able to do the passing through, so that www.xyz.com/contact-us links through to the /portal/page/portal/contact-us with the following rules
<VirtualHost *:7778>
ServerName blahblah.xyz.com
Port 7777
DocumentRoot "/oracle/oas/SOMEFOLDER/Apache/Apache/htdocs"
#DirectoryIndex labelled.htm
Alias /developments/ "/oracle/share/SOMEFOLDER/developments/"
Alias /attributes/ "/oracle/share/propertygenie/shared/attributes/"
<snip Aliases.....>
RewriteEngine on
RewriteOptions inherit
RewriteCond %{REQUEST_URI} !^/portal/page/portal/SOMETHING/.*$
RewriteRule ^/(.*)$ /portal/page/portal/SOMETHING/$1 [PT]
<SNIP .... />
</VirtualHost>
This is mirrored by a rule in config section. where /portal/page/portal/SOMETHING/ is replaced by /
When i replace the RewriteCond with a rewrite rule, as follows, I get errors:
RewriteRule ^/portal/page/portal/SOMETHING/(.*)$ /$1 [R]
RewriteRule ^/(.*)$ /portal/page/portal/SOMETHING/$1 [PT]
I would expect the above to rewrite the url if it starts with /portal/page/portal/SOMETHING/ and then pass it through on the backend.
What am I doing wrong?
Any assistance would be greatly appreciated.

Haitham,
There is more than one way to do this as per this link below, someone has already posted sometime ago on this forum.
http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_configuration_example09186a00801de8d6.shtml
owner example
content default-redirect
port 80
protocol tcp
vip address 192.168.1.1
url "www.example.com/*"
redirect "www.example.com/test/home.htm"
active
thanks

Similar Messages

  • How to open an URL and close the URL window, using adobe javascript

    Hi,
      Is it possible to open an URL and close the URL back again(without allowing the user to perform any other operation)? I was able to acheive the opening of the URL, using the app.launchURL("address". true); - But here it lauches in new window, and how do i close the window using the javascript. Is it possible?
    Thanks.

    Hi all
    In addition to what Bobby W - Adobe TS added, you might find
    the following useful as a bypass or workaround to the pesky prompt.
    var pw=window.parent;pw.opener=window.self;window.open("
    http://www.adobe.com");
    pw.close();
    I think this will only work for IE browsers. Actually, I
    think the whole window.close() only works for IE, but could be
    wrong about that.
    Cheers... Rick

  • Published calendar link goes to "about: blank" url? BUT the url seems ok

    The URL seems fine - webcal://ical.me.com/myaccountname/calendarname.ics
    Yet, when the subscriber links to it, Safari goes to "about:blank" Any thoughts?

    Hi June,
    You could try http://ical.mac.com/junehiggins/G%26J/ as & is a reserved character in URLs and needs to be encoded.
    To be safer you might want to changed the published name of your calendar to GandJ or something like that, as there has been a history of problems where people use non alpha-numeric characters to publish to .Mac.
    Best wishes
    John M

  • How do I get the URL of a jsp page?

    I have a jsp page which has a link to a servlet page, in the servlet page, I want to get the URL of the jsp page.
    I tried to use request.getHeader("referer"), it seems like if it is a link in the jsp directly lead to the servlet, it works, but if the link calls a javascript function which opens up a window runing the servlet, it is not working. I have to do the second way, so it is not working by doing request.getHeader("referer")
    I tried to use javascript "location.href", I get the whole url by alerting the url in the jsp page:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal&bcd=ABC123&pnm=P1001830&prnm=1&psd=236863.0&ln=01&sln=NYPPA&stp=2.1&stt=A&_POSID=1F8464122ADAF4EEC9B1A94C286EB252
    then I pass this url when calling with my servlet, in the servlet page, when I do request.getParameter("url"), the url is actually cut off like this:
    http://localhost:8080/pos-webapp/serv/qt_old?currentpage=portal
    anything after &pnm is cut off, anyone has any idea?
    Thanks in advance.

    Thank you.
    but how do I put encoding in the javascript code? do I need to decode in my servlet page?
    here is my code in the jsp page:
    linkset[3]+='<div class="menuitems">Email Diagnostics to AutoOne</div>'<%     
    function emailDiagnostics()
    win = window.open("/pos-webapp/serv/email_diagnostics?url=" + location.href + "&browser=" + navigator.appName, "emailDiagnostics",
    "width=350, height=140, resizable=no, scrollbars=no, toolbar=no, location=yes, directories=no, status=no, menubar=no, copyhistory=no, left=450, top=300");
    win.focus();
    }

  • Commas not correctly processed when values are passed through the URL!!!!!!

    I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
    There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
    where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
    However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
    The URL looks like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
    However the URL should look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
    where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
    What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.

    Never mind... problem solved.
    In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
    So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
    Sorry... no bug. :)

  • Pass parameter to apex page via the URL

    Hi, I need to pass a parameter into a page that will be used in a query inside a report region,
    e.g report region query is
    select link_id, page_id, menu_parent_id, link_text, link_url
    from portal_pages
    where page_id = :page_id
    So the page will display different links depending on what value is passed to the page in the variable.
    I know with normal URL syntax it would be something like
    http://www.domain.com/page.html&page_id=1 (where page_id is a hidden variable in apex)
    but how do I do this with an apex page like :-
    http://host:port/pls/apex/f?p=123:9 <what goes here ? and what goes in the page for it to work>
    Any help appreciated - noob to Apex
    Thanks
    Phil.

    If your item to be used in the url is P1_Page_Id, the
    url should be something like:<br>
    http://host:port/pls/apex/f?p=123:9:page_id:&P1_Page_I
    d.
    Thanks for comments, understand the syntax of the apex URLs now, got the item sorted in the page now, all working.

  • How Can i get the URL of a page

    How Can i get the URL of a page . like in ASP the
    Request.QueryString() ...
    Thanks

    Are you wanting actual URL or just the url (query string
    variables)?
    For url variables you would reference the structure.variable
    name like so:
    #url.variablename#
    So if you had a url like this:
    http://www.somedomain.com?page=home&action=view
    You could access the variables like so:
    #url.page#
    #url.action#
    If you are wanting to actual page you could use:
    #cgi.script_name#
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technologies, Inc.
    =============================
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "Yasmin_lady" <[email protected]> wrote in
    message
    news:e4fhjv$fpl$[email protected]..
    > How Can i get the URL of a page . like in ASP the
    Request.QueryString()
    > ...
    > Thanks

  • Not able to navigate to the URL in new window

    I am trying to navigate to the URL form the OAF page through simple button and it should open in new window.In 11i it was working fine bu using setDestination(url) and setTargetFrame("_blank") properties but in R12 setTargetFrame property is not working so I am not able to open the url framed in new window.It is opening in the same window.In R12 I am trying with javascript with the following code but it is not working there.Could you please help it is urgent?
    xxExtRef.setDestination("javascript:window.open(url);");
    where url variable holds the URL which is framed at run time i.e. url is different for diffrent customers
    Any pointers would be of great help.
    Thanks in advance.

    Hi ,
    Instead of button you can go for Link and hardcode the url (eg : http://www.yahoo.com ) and set the target frame as _b using declarative implementation from Jdeveloper .
    it will open the URL in a new window .
    Keerthi

  • Can bookmarks be organized so the folders are listed first (above) the urls like they are in Internet Explorer?

    In Internet Explorer I nest web addresses (urls) inside folders in a folder tree. This is something Internet Explorer actually does quite well. It would really be helpful when you open a folder in the Firefox Bookmarks to see all the folders nested within it listed at the top before any urls that might also be in the folder. If anyone knows how to do this, I'd sure appreciate knowing. Thanks.

    The extension SortPlaces gives you many options on how to sort folder, the urls within folders, the urls not in folders, and the bookmarks toolbar items. I use SortPlaces for the almost 4,000 bookmarks that I have within and outside of many, many nested folders.
    SortPlaces: https://addons.mozilla.org/en-US/firefox/addon/9275
    More info about SortPlaces: http://www.andyhalford.com/sortplaces/index.html
    You need to update your plug-ins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Macromedia Shockwave for Director Netscape plug-in, version 11.5
    **new security release 08/24/2010
    * Adobe PDF Plug-In For Firefox and Netscape
    * Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    #Check your plugin versions: http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Adobe PDF Plug-In For Firefox and Netscape (Adobe Reader) - '''''if needed''''''''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use Firefox to download and SAVE the installer to your hard drive from the link in the article below
    #**On the Adobe page, un-check any extra items (i.e. Free McAfee® Security Scan Plus) then click Download button
    #**If you see message just under tabs, DO NOT click the Allow button, instead click below that where it says "click here to download".
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link and more information</u>''': https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    #*After the installation, start Firefox and check your version again.
    #'''Update Java:''' https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox

  • I want keep the URL. is it reverse proxy?

    Hi everyone.
    I don't know what is right.
    Just I want keep the url.
    for example,
    I have public url address. ex) public.abc.com
    and I have EP Product Server beyond firewall ex) ep.abc.com:50100/irj
    and I have B2C Homepage Server beyond firewall ex) b2b.abc.com:80
    I don't want to show public visitor our systems(url, ports, etc)
    so if user type the url "http://public.abc.com/epadm" then move to "http://ep.abc.com:50100/irj" but, user don't show the change url. just show the url is "http://public.abc.com/epadm". any click the hyperlink in EP Product System, don't change the url "http://public.abc.com/epadm"
    Could you help me?

    Mr. Park,
    On the WinNT server just open <drive:\>\winnt\system32\drivers\etc\hosts
    and make entry as following
    192.x.x.x epdev epdev.abccompany.com
    then save and test.
    More details on this thread: https://forums.sdn.sap.com/thread.jspa?threadID=80511
    <a href="https://forums.sdn.sap.com/thread.jspa?threadID=80511">FQDN</a>
    I hope can resolve your FQDN redirection.
    regards,
    AAAttar

  • Weird Space on the URL Bar

    Their is a odd space on the URL bar between the URL itself and the back button
    Here is a Screen Shot: http://prntscr.com/1x5zuz
    Its really annoying.. Please help

    '''Try the Firefox SafeMode''' to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode#w_safe-mode-window_2 Troubleshoot Firefox issues using Firefox SafeMode]
    * You can open the Firefox 15.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes <br />
    Or it might be caused by Hardware Acceleration.
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • How to Rewrite the URL

    When I use the mod_rewrite to change my URL http://www.domain/myapp/ to http://www.domain/, it didn't work.
    In my case I added some lines like this:
    RewriteEngine     on
    RewriteRule          ^/$     /myapp/ [R]
    and another way didn't work as well, like this:
    RewriteEngine on
    RewriteBase     /
    RewriteRule     ^myapp$     /myapp/ [R]
    What should I do?
    Thanks a lot!

    What you can do is to use a javascript to invoke the link. Assign the link to a javascript variable. Make sure the javascript varible is not in the URL rewrite javascript varible list in the adminConsole. This way the url will not be re-written.
    ie.
    <script language ="javascript">
    myUrl= "http://blah.html";
    function openThisUrl(thisUrl) {
    window.open(thisUrl);
    </script>
    <html>
    <a href = "javascript:void()" onClick="openThisUrl(myUrl)">Link</a>
    </html>

  • ADF applicaiton enabling the URL rewriting - configure OHS

    Hi Experts,
    I am new to OHS and i have the following question about enabling the URL rewriting.
    We are planning to deploy the ADF fusion web application into the weblogic and place the OHS infront of the weblogic as the standard deployment architecture. In the web application the URL rewriting is enabled. Do we need to configure anything at the OHS side to work this URL rewriting? Or will the OHS supports this by default?
    Thanks.

    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

  • Can ACE rewrite the URL sent back to the browser?

    Hi,
    I want to know that if there is a link on a webpage, for example: www.test.com/folder1/folder2/index.html
    Would be it be possible to rewrite this so that when the webserver provides you with that page, that the ACE rewrites the given URL so that the browser only says in the URL bar: www.test.com
    Or is this impossible and would the webserver itself need to do this rewrite?
    Thanks!

    Hi Robin,
    As per my understanding, when you click on that link the URL would say www.test.com/folder1/folder2/index.html in URL bar. ACE can rewrite URL and forward to server or can modify server response but i am not sure if there's anyway you can get the URL change in the bar after you click on hyperlink and webpage loads. May be you can have redirection but not rewrite here.
    Regards,
    Kanwal

  • URL rewriting for the links

    Hi
    I have my webapplication which is running on tomcat ....and as of now i havent encoded any of my links in the web application ...they are like
    <a href="/action.do?id=1"></a>
    Is it my duty to keep all the URLs encoded so that if the client diables the browser this would be helpful ??
    Currently then if a client disables the cookies my application should not work properly right ??
    Can any one enlighten this

    If you are using Struts, then use the html:link tag.
    That will automatically encode the URLs for you if necessary.
    <% pageContext.setAttribute("id", "1"); %>
    <html:link action="/action" paramId="id" name="id"/>
    http://struts.apache.org/userGuide/struts-html.html#linkCheers,
    evnafets

Maybe you are looking for

  • Hi what is the transaction code for vendor master delete

    hi    what is the transaction code for vendor master delete? and customer master delete? thank u surya

  • HP 7300 All-In-One

    K, I use a HP 7310 All-In-One Printer for my SOHO, and upgrading to Leopard just cut me off at my knees. I can print to it, but not scan. HP doesn't have a new driver and them saying "we're working on it" doesn't instill a lot of confidence. I really

  • Current status of PO or SC

    Hi all, We use normally CRM_JEST or  BBP_PD_STATUS_GETDETAIL FM to get the status of SC or PO. But it contain all the status. I need only the current status of the PO or Sc. Is there any table i can get current status or FM ? Thanks in advance, Neeli

  • Roles of XI developer

    Hi , I had given following roles to the developer user , but not able to open integration repository & Integartion diirectory in Pi 7.0 roles i had given are SAP_XI_DEVELOPER SAP_SLD_DEVELOPER SAP_XI_DEMOAPP wat are the other roles to be added or any

  • Unable to Trash certain files

    I'm unable to get rid of some files. When I drag them to the "Trash" I get the message "You cannot move "name of file" to the "Trash" because it cannot be found." When I search for the file by name in Sherlock, Sherlock finds the name but says it can