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
Aniket SaveAniket Save 

community url

We have a custom domain which is added in Salesforce. Now I am trying to map this custom domain with a special url which is built on community . My special url has special characters like _ & ?. I am not able to add this special url in my community url suffx path.  I have enclosed the image for your reference. Kindly suggest a way around for this.User-added image
SwethaSwetha (Salesforce Developers) 
HI Aniket,

When you try to add a URL with special characters, "The URL can only contain alphanumeric characters." message would be shown.

Can you check if the URLRewriter class mentioned in below link will solve your use case : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_site_urlRewriter.htm 
If it does, please mark this as the best answer.

Thanks