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
Martin Brown 22Martin Brown 22 

Keep original URL for custom domain

I've created a custom domain for my Salesforce Visualforce page and when I type in  http://enquiry.dacs.org.uk into my browser it goes to https://dacs.secure.force.com/enquiry.

However I'm wanting it to show the page the original URL in the browser (http://enquiry.dacs.org.uk) even though it is displaying the page https://dacs.secure.force.com/enquiry. 

How do I do this?
 
NagendraNagendra (Salesforce Developers) 
Hi Martin,

When you set up a subdomain name for your org with My Domain, all your application URLs, including Visualforce pages, also change. Make sure that you update all application URLs before you deploy a domain name. For example, the Email Notification URL field in Chatter Answers continues to send notifications with the old URLs to internal users unless you update it. This table shows you the differences.

URL Type: Login

Old URL: https://login.salesforce.com

New URL: https://<subdomain>.my. salesforce.com


URL Type: Application page or tab

Old URL: https://<instance>.salesforce.com/<pageID>

New URL: https://<subdomain>.my. salesforce.com /<pageID>


URL Type: Visualforce page with no namespace

Old URL: https://c.<instance>visual.force.com/apex/<pagename>

New URL: https://<subdomain>--c. <instance>.visual. force.com /apex /<pagename>


URL Type: Visualforce page with namespace

Old URL: https://<yournamespace101>.​<instance>.visual.​force.com​/apex/<pagename>

New URL: https://<subdomain>--​<yournamespace>.​<instance>.visual.force.com​/apex/​


Note: If you implement My Domain in a sandbox environment, the URL format is https://<subdomain>--<sandboxname>.<instance>.my.salesforce.com. Because you can’t have namespaces in a sandbox environment, the format of all Visualforce page URLs in a sandbox is https://<subdomain>--<sandboxname>--c.<instance>.visual.force.com/apex/<pagename>.

Hope this helps.

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

Thanks,
Nagendra

 
Martin Brown 22Martin Brown 22
Thanks for the reply but I'm not sure what I should do.

I'm assuming https://dacs.secure.force.com/enquiry is a Visualforce page. So are you saying I need to change it's URL? Where do I do that?
 
om gupta(sfdc)om gupta(sfdc)
actually suppose you have buy custom domain from godaddy there is option to keep the same url not showing the redirect url . 
you can also ask customer care where you have purchase . hope this will help you
Martin Brown 22Martin Brown 22
I already have a custom domain http://enquiry.dacs.org.uk  but I need to know what settings to set to stop the URL from being changed in the broswer.
Jaykumar MandaviyaJaykumar Mandaviya
I am facing the same issue Martin. any chance did you find any solution for it?