Hi Florent, You can have your URL rewriter pass the value of xdmp:get-request-url as a parameter to your module, then you can use that in your module.
-Danny ________________________________________ From: [email protected] [[email protected]] On Behalf Of Florent Georges [[email protected]] Sent: Saturday, December 05, 2009 8:10 AM To: MarkLogic General ML Subject: [MarkLogic Dev General] URI rewriting and original request URI Hi, I am using the URI rewriting facility of the HTTP app server. It seems the module set as the URI rewriter sees the original URI while the resolved module (the module that is actually evaluated after the URI rewriting) sees the rewrited URI: (: uri-rewriter.xqy :) replace(xdmp:get-request-url(), '^/a.xqy$', '/b.xqy') (: b.xqy :) xdmp:get-request-url() The result is the text '/b.xqy'. Is there any way to access the original URI in the resolved module? Regards, -- Florent Georges http://www.fgeorges.org/ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
