Contents
How to get site URL in Salesforce Org?
We can also list the community sites in salesforce. Let’s see an example. In this example we are going to list down all active sites available in salesforce org. For sandbox site url we need to add the sandbox name prior to sub-domain of the site.
How to create custom domain for Salesforce sites?
Create CNAME records to redirect your custom domain and subdomains to your Salesforce Sites domain without exposing the secure.force.com or salesforce-sites.com name in the URL. It can take up to 48 hours for your Salesforce Sites domain to become available on the Internet. Custom domains aren’t supported for Developer Edition organizations.
What do you need to know about Salesforce sites?
With Salesforce Sites, you no longer have to do any of those things. Salesforce Sites enables you to create public websites and applications that are directly integrated with your Salesforce organization—without requiring users to log in with a username and password.
Where do I put my Salesforce instance name?
Your Salesforce instance name is included in the URLs for Developer Edition and sandbox orgs. Create a branded, custom web address, such as http://www.mycompanyideas.com, by registering through a domain name registrar.
Users logging into a site with a non-secure (HTTP) site URL are redirected to a secure (HTTPS) URL. To set restrictions based on IP or login hours, HTTPS is required. Salesforce requires HTTPS connections to all sites and automatically upgrades HTTP requests.
How can I get my community base URL in apex?
On a Visualforce page controller/extension, you can always grab the base URL using the URL class methods in apex: Thanks for contributing an answer to Salesforce Stack Exchange! Please be sure to answer the question. Provide details and share your research!
How to cache a static resource in Salesforce?
Cache settings on static resources are set to private when accessed via a Salesforce Site whose guest user’s profile has restrictions based on IP range or login hours. Sites with guest user profile restrictions cache static resources only within the browser.
How to get a URL for a website?
Then just query the site based on the Name or MasterLabel. You can still store a general description in the field, you’ll just want to wrap your URL in a distinct tag character and then use String.substringBetween (tag).
How to get the instance URL for a Visualforce page?
I have a VisualForce page with a link: Soon we are migrating from na1 to another instance and would like to know how to automatically retrieve the Salesforce Instance to do the same changes in all the visualforce pages. I have tried to use relative links as in any custom link:
How to request Google to recrawl your URLs?
Requesting a recrawl multiple times for the same URL or sitemap won’t get it crawled any faster. Note: You must be an owner or full user of the Search Console property to be able to request indexing in the URL Inspection tool. Use the URL Inspection tool to request a crawl of individual URLs.