---
schema_version: "1"
id: 690a51ac592cef7bdda9b9f3f222dd6b592711474fcf2bfc99d745560dc37af2
title: Use the Correct Login URL
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/getstart_login_urls.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.getstart_login_urls.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2cbd907508365b2d043ebf380e8a20690a071bfa5f4c01818a83d6bc7d5bbd25
description: If you're an admin or developer, make sure that you use the correct login URL for the instance that you want to access.
products:
  - Salesforce Platform
  - Cross Cloud
release: "264"
---
# Use the Correct Login URL

If you're an admin or developer, make sure that you use the correct login URL for the instance that you want to access.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All</strong> Editions except <strong>Database.com</strong></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:33.33333333333333%">
        <col style="width:33.33333333333333%">
        <col style="width:33.33333333333333%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d20222e63">Where You’re Trying to Log In</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d20222e66">Login URL Options</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d20222e69">Considerations</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Where You’re Trying to Log In" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e63 ">A production org, such as the org that your company uses for managing customer
            information.</td>

          <td data-label="Login URL Options" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e66 ">
            <ul>
              <li>
                <samp class="filepath">https://login.salesforce.com</samp>
              </li>

              <li>Your company-specific My Domain login URL, such as
                <samp class="filepath">https://<var>MyDomainName</var>.my.salesforce.com</samp>
              </li>

            </ul>
          </td>

          <td data-label="Considerations" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e69 ">
            <p>Your company’s login policies can prevent you from logging in using
              <samp class="filepath">login.salesforce.com</samp>. If this URL doesn’t work, try the My
              Domain login URL.
            </p>
            <p style="margin-bottom:0;">To get to your My Domain URL from
              <samp class="filepath">login.salesforce.com</samp>, on the login page, click <strong class="uicontrol">Use
                Custom Domain</strong> and then enter your company’s domain name.
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Where You’re Trying to Log In" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e63 ">A sandbox that your company uses for testing changes before implementing them in
            production.</td>

          <td data-label="Login URL Options" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e66 ">
            <ul>
              <li>
                <samp class="filepath">https://test.salesforce.com</samp>
              </li>

              <li>Your company-specific sandbox login URL, such as
                <samp class="filepath"><var>MyDomainName</var>--<var>SandboxName</var>.sandbox.my.salesforce.com</samp>
              </li>

            </ul>
          </td>

          <td data-label="Considerations" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e69 ">
            <ul>
              <li>Your company’s login policies can prevent you from logging in using
                <samp class="filepath">test.salesforce.com</samp>. If this URL doesn’t work, try your
                company-specific sandbox login URL.
              </li>

              <li>After a sandbox is created or refreshed, it can take 24–48 hours before you’re
                able to log in using <samp class="filepath">https://test.salesforce.com</samp>. During this
                period, access your sandbox via its company-specific sandbox login URL.</li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Where You’re Trying to Log In" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e63 ">A scratch org that your company uses for source-driven development.</td>

          <td data-label="Login URL Options" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e66 ">
            <ul>
              <li><samp class="filepath">https://test.salesforce.com</samp>–</li>

              <li>Your company-specific scratch org login URL, such as
                <samp class="filepath">https://<var>MyDomainName</var>.scratch.my.salesforce.com</samp>
              </li>

            </ul>
          </td>

          <td data-label="Considerations" class="slds-cell-wrap" style="vertical-align:top;" headers="d20222e69 ">
            <ul>
              <li>Your company’s login policies can prevent you from logging in using
                <samp class="filepath">test.salesforce.com</samp>. If this URL doesn’t work, try the
                scratch org login URL.
              </li>

              <li>On Salesforce’s first-party infrastructure, if your company’s login policies
                allow it, all users can log in using <samp class="filepath">test.salesforce.com</samp>. If
                the org is on Salesforce’s Hyperforce infrastructure, only the scratch org’s
                default admin user can log in using <samp class="filepath">test.salesforce.com</samp>. To
                learn more about these infrastructure types, see <a href="https://help.salesforce.com/s/articleView?id=000396845&amp;type=1&amp;language=en_US" target="_blank">Where is my Salesforce instance
                  located?</a>.</li>

            </ul>
          </td>

        </tr>
      </tbody>
    </table>