4

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 http://easyurl.com to http://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?

Edit: Now that I think about it, this question probably belongs on Server Fault. I'll move it there.

Further edit: https://serverfault.com/questions/177795/url-rewrite-in-weblogic-11g is the Server Fault link.

Community
  • 1
  • 1
A. Wilson
  • 8,534
  • 1
  • 26
  • 39

3 Answers3

2
  • 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
  • 562,542
  • 136
  • 1,062
  • 1,124
  • c.f. my responses on Server Fault. I'll remove this question here to reduce confusion. edit: Never mind, deletion isn't unilateral for someone of my rep. – A. Wilson Sep 07 '10 at 17:32
  • @wilsona This question is IMO appropriate for SO as it may involve "programming" (with the Filter part). As I answered on SF, the filter is not a WebLogic add-on, this is a Servlet Filter, it's part of the web app. – Pascal Thivent Sep 07 '10 at 17:44
  • A good argument, but it's still code that would have to be managed that isn't delivered with the system as-is (this particular WebLogic installation is part of a system package install), so it's not completely desirable in this particular case (management of new code requires a lot of documentation with this particular client). Since it would work almost everywhere else, though, I'm going to go ahead and accept your answer. – A. Wilson Sep 08 '10 at 00:27
0

There is no way to do this out of the box with weblogic. The least invasive is to implement Pascal's suggestion of a url rewrite filter. I had the exact same requirement (implement this with just weblogic, no additional code as it would have to be managed/documented, etc) and there was no way to do this.

BestPractices
  • 12,738
  • 29
  • 96
  • 140
  • 10 years later I am facing the same issue. Any update on this? Maybe Weblogic evolved and it is now possible? But until now I have not seen the feature. – alainlompo Aug 18 '22 at 11:52
0

I would use either PrettyFaces or OCPsoft Rewrite for this. Both are more updated solutions to the URL-rewriting domain:

http://ocpsoft.com/prettyfaces/

http://ocpsoft.com/rewrite/

Lincoln
  • 3,151
  • 17
  • 22