function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
XactiumBenXactiumBen 

Getting invalid class urlrewriter

I'm trying to use the Url Rewriter functionality in my developer edition account but can't seem to get it working.  I get an invalid class error message when creating my apex class (see below) and I also can't see the URL Rewriter field in the Site itself.  Is there something I need to do to get this working or is this not available yet?  I assumed it should be available now my developer edition account has been upgraded to Summer '10.

 

 

I'm using this code in my apex class:

 

global class yourClass implements Site.UrlRewriter {

    global PageReference mapRequestUrl(PageReference yourFriendlyUrl)
    {
    }
    
    global PageReference[] generateUrlFor(PageReference[] yourSalesforceUrls)
    {
    }
}

 

The error I get is:

Error: Compile Error: Invalid class: urlrewriter at line 1 column 35  

 

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

the url rewriter feature is enabled as of last night.

 

All Answers

RyanGuestRyanGuest

URL Rewriting is not generally available yet. Should be sometime soon.

XactiumBenXactiumBen

I assumed it would be delivered as Summer '10 and since my developer account has been upgraded I thought I could have a look at it.  I can already use the Cookie support in this account so I was a little confused why I couldn't use this feature yet.

Sandeep001Sandeep001

Make sure you have upgraded the API version of your apex class and visualforce page.

chavdar.chernashkichavdar.chernashki

I am getting the same error. All of my apex classes and pages are version 19.

BulentBulent

the url rewriter feature is enabled as of last night.

 

This was selected as the best answer
XactiumBenXactiumBen

I signed up for a new developer edition account and the URL Rewriter doesn't seem to be available on this org.  Old orgs however seem to have it - do I need to log a case to get this activated?

BulentBulent

please email me your orgid to bcinarkaya@salesforce.com