1

I have a client running a WebLogic 11g install on a Windows Server machine who wishes to implement Apache-style mod_rewrite-like functionality to translate requests for easyurl.com to super.complicated.com/with/this/junk?here=and_more. I have scoured the Internet for advice, but all I can find are other people who are asking the same question and not getting any answer. Assuming that installing 3rd-party apps is not an option, how do I implement this in WebLogic?

To clarify, WebLogic is not running with Apache (or else I'd just use mod_rewrite).

A. Wilson
  • 141
  • 1
  • 6

2 Answers2

1

I had to look into the exact same thing for WebLogic to no avail. There is no URL Rewrite feature in weblogic (or some sort of workaround). The only way to do it is to add code e.g. a java filter to do it.

BestPractices
  • 183
  • 1
  • 2
  • 10
0
  • If you are using Apache HTTPD with the Apache HTTP Server Plug-In in front of WebLogic, then it should be possible to use mod_rewrite before to send request to WebLogic.

  • If not, then you could use Tuckey's Url Rewrite Filter (a Java Filter) that allows to rewrite URLs in a mod_rewrite like manner at the application server level.

Pascal Thivent
  • 1,505
  • 14
  • 11
  • I saw the filter, but I was trying to avoid third-party solutions (even though it's just a filter add-on to the WebLogic engine, it still needs to be managed and tracked by my client, and the less of that that needs to be done, the better). My problem ended up being simple enough that I used an http redirect, but unfortunately the question itself remains unresolved. – A. Wilson Sep 07 '10 at 13:33
  • @wilsona The filter is not an addon to WebLogic, the Servlet Filter is part of the application, it's managed by the people developing/packaging/providing the application. – Pascal Thivent Sep 07 '10 at 17:43
  • Agreed, you should always reverse proxy your Java app-servers with a real web server. – HampusLi Sep 06 '11 at 07:53