How to programmatically disable URL rewriting?
Hi,
We have, say, an entry under /etc/map that converts <a href="https://forums.adobe.com/content/foo/products.html>Products</a> to <a href="http://www.example.com/products">Products</a>.
Looks like some services, like Link Checker, can be disabled programmatically:
<% org.apache.sling.runmode.RunMode runmode = sling.getService(org.apache.sling.runmode.RunMode.class); String[] runmodes = runmode.getCurrentRunModes(); boolean isPublish = false; String [] expectedRunModes = {"publish"}; if(runmode.isActive(expectedRunModes)) { isPublish = true; } if(isPublish) { LinkCheckerSettings s = LinkCheckerSettings.fromRequest(slingRequest); s.setIgnoreExternals(true); } %>Is it possible to programmatically disable URL rewriting as well?
Thanks in advance.