When setting up Login & Registration pages in community, it's possible to select different page types.

enter image description here

Each of these type accessible by different URL:

When a community is published and activated, BOTH URLs are active. That is when I go to this URL /login, it opens the default page. When I click this URL /s/login/, the community builder page is opened. What I need is when I select Community Builder Page as a page type for login, then default page should not be accessible. I have custom logic in the community builder page custom controller which prevents certain users from login. But if standard default page is alive, then users can simply bypass our custom validations. This is not good.

Is it possible to deactivate default page at all?

  • do you want to use a custom login page?
    – RedDevil
    Dec 4, 2019 at 14:23
  • Yes, I want to use a custom login page only. But the problem is when I use, the default page is also accessible. This means that users have two separate pages for login. And since the default page is not customizable, I cannot add validations there to prevent certain users from signing in.
    – Eduard
    Dec 4, 2019 at 14:28

1 Answer 1


Make a URL Redirect from the default login page to your custom login page. This can be found on the Site detail page, a button labeled "URL Redirects". Create a new rule that puts a permanent redirect from /login to the desired login page. Be aware that if your community has a custom URL path, then the Target URL may also need to include this path.

This won't deactivate the default page per se, but users won't be able to reach it.

  • Is there a way to get rid of the default /s/login in the same way? It doesn't seem to work for me but it's working as charm with the /login
    – user682217
    Dec 17, 2020 at 22:25
  • For my (lightning) community I have a modified login page as part of that lightning community and this is shown whether I access /login or /s/login. Can you use this approach instead? I didn't try actually disabling login entirely on the page, but you could give it a go...
    – Phil W
    Dec 18, 2020 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.