How to rewrite URL of Force.com Site, Communities, etc.?

In order to rewrite URL of Force.com Site, Communities, etc, make use of "Site.UrlRewriter Interface".

Syntax:

global class yourClass implements Site.UrlRewriter {
    global PageReference mapRequestUrl(PageReference yourFriendlyUrl) {

    }

    global PageReference[] generateUrlFor(PageReference[] yourSalesforceUrls) {

    }
}

No comments:

Post a Comment