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
Kartheek VarmaKartheek Varma 

How to create the section in site.com

How to Rewrite URLs for Force.com Sites
 
 
 
NagendraNagendra (Salesforce Developers) 
Hi Kartheek,


Rewrite URLs for Force.com Sites:

Sites provide built-in logic that helps you display user-friendly URLs and links to site visitors. Create rules to rewrite URL requests typed into the address bar, launched from bookmarks, or linked from external websites. You can also create rules to rewrite the URLs for links within site pages. URL rewriting not only makes URLs more descriptive and intuitive for users, it allows search engines to better index your site pages.

For example, let's say that you have a blog site. Without URL rewriting, a blog entry's URL might look like this: http://myblog.force.com/posts?id=003D000000Q0PcN
With URL rewriting, your users can access blog posts by date and title, say, instead of by record ID. The URL for one of your New Year's Eve posts might be: http://myblog.force.com/posts/2009/12/31/auld-lang-syne

You can also rewrite URLs for links shown within a site page. If your New Year's Eve post contained a link to your Valentine's Day post, the link URL might show: http://myblog.force.com/posts/2010/02/14/last-minute-roses
To rewrite URLs for a site, create an Apex class that maps the original URLs to user-friendly URLs, and then add the Apex class to your site.
To learn about the methods on the Site.UrlRewriter interface, see UrlRewriter Interface.

For complete information may I suggest you please check with below links for step by step process? Hope this helps your issue.

Please mark this as solved if it' resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra
Kartheek VarmaKartheek Varma
How to write the test class in below trigger
trigger SendAdmitCard on Admit_Card__c (after update) {
    
    Set<Admit_Card__c> admitCardDetails = new Set<Admit_Card__c>();
    if(Trigger.isInsert || Trigger.isUpdate) {
    for(Admit_Card__c admitCard : trigger.new){
        if(admitCard.FUA_Broadcast_Admit_Card__c){
            admitCardDetails.add(admitCard);
        }
    }
    }
    if(admitCardDetails.size()>0) AdmitCardDetailsHandler.CreateAdmitCard(admitCardDetails);
   
  
  
   
}