Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » Friendly URL rewrite or masking (Apache 2.4, ORDS 21.3, APEX 21.1)
Friendly URL rewrite or masking [message #685328] Thu, 09 December 2021 04:49
John Watson
Messages: 8927
Registered: January 2010
Location: Global Village
Senior Member
APEX has these (supposedly) "friendly" URLs,
https://docs.oracle.com/en/database/oracle/application-express/20.1/htmdb/understanding-friendly-url-syntax.html#GUID-313EF6E9-3449-4 18B-8900-1A7DA200F6D8

Using Apache httpd and ORDS deployed to Tomcat, I have the virtual hosts configured (hiding anything identifiable, I hope) so that if a user issues this,
he ends up here,
which is what we want. I'm using this rewrite to get https,
RewriteRule ^/?(.*) https://%{HTTP_HOST}/$1 [R,L]
and then this to get the page,
RewriteRule ^/$           /ords/yyy/r/asp-directory  [R,L]
and finally this to send it to ords,
ProxyPass        /ords https://localhost:8843/ords
All cool.

However, is it possible to somehow mask the "ords/yyy/r/asp-directory" part of the URL that is seen in the browser? The reason is that if any user removes one of those sections, then an error comes up (depending on what is removed). We've been trying think of some way of doing it with more redirections, perhaps some sort of inverse match that would catch everything that isn't what we want, but no success.

Thank you for any insight.

(ps - I realize that this could fit better in the WEbLogic and APPlication Server forum, but trying here as it is an APEX application)

[Updated on: Thu, 09 December 2021 04:52]

Report message to a moderator

Previous Topic: Problem migrating from MOD_PLSQL to ORDS
Next Topic: Tracing .../r/... calls
Goto Forum:

Current Time: Sun Apr 14 19:43:27 CDT 2024