{"id":23214,"date":"2024-08-30T10:11:20","date_gmt":"2024-08-30T10:11:20","guid":{"rendered":"https:\/\/kwebby.com\/blog\/?p=23214"},"modified":"2024-08-30T10:11:25","modified_gmt":"2024-08-30T10:11:25","slug":"login-page-in-sitelinks-sitemap","status":"publish","type":"post","link":"https:\/\/kwebby.com\/blog\/login-page-in-sitelinks-sitemap\/","title":{"rendered":"How do you get your login page in Sitelinks\/Sitemap? Google Answers"},"content":{"rendered":"\n<p>In the ever changing world of search engine optimisation (SEO), one of the biggest questions webmasters and digital marketers have is how to get their login pages to show in Sitelinks or <a href=\"https:\/\/kwebby.com\/blog\/wordpress-sitemap\/\" data-type=\"post\" data-id=\"10193\">Sitemap<\/a>.<\/p>\n\n\n\n<p>As mentioned in the recent Google Search Central video, &#8220;SEO Work Hours &#8211; Aug 2024&#8221;, getting your login page to show can really impact <a href=\"https:\/\/kwebby.com\/blog\/content-marketing-mistakes\/\" data-type=\"post\" data-id=\"11919\">user engagemen<\/a>t and site navigation.<\/p>\n\n\n\n<p>So many webmasters are asking: what are the strategies or best practices to get your login page to stand out?<\/p>\n\n\n\n<p>In this post we will go into the details shared by Google experts on how Sitelinks are generated and shown in search results.<\/p>\n\n\n\n<p>Get ready as we reveal the key elements that will make all the difference in your SEO. Stay tuned for practical tips to boost your <a href=\"https:\/\/kwebby.com\/blog\/wordpress-site-visible-on-google-search\/\" data-type=\"post\" data-id=\"15552\">website\u2019s search visibility<\/a>!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Google Answers: How do you get your login page in Sitelinks<\/h2>\n\n\n\n<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/Fj42gKDQxYI?si=1HtomyMkDi9beikj&amp;start=818\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n\n\n\n<p>To the original question in the Google Search Central video,<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>&#8220;How can software as a service companies ensure their login page appears in their sitelinks?&#8221;<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"491\" src=\"https:\/\/kwebby.com\/blog\/wp-content\/uploads\/2024\/08\/2024-08-30_15-34-31-1024x491.png\" alt=\"\" class=\"wp-image-23218\" title=\"\" srcset=\"https:\/\/kwebby.com\/blog\/wp-content\/uploads\/2024\/08\/2024-08-30_15-34-31-1024x491.png 1024w, https:\/\/kwebby.com\/blog\/wp-content\/uploads\/2024\/08\/2024-08-30_15-34-31-300x144.png 300w, https:\/\/kwebby.com\/blog\/wp-content\/uploads\/2024\/08\/2024-08-30_15-34-31-768x368.png 768w, https:\/\/kwebby.com\/blog\/wp-content\/uploads\/2024\/08\/2024-08-30_15-34-31-1536x737.png 1536w, https:\/\/kwebby.com\/blog\/wp-content\/uploads\/2024\/08\/2024-08-30_15-34-31-2048x983.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>we must remember that webmasters can\u2019t control what shows in Sitelinks but we can do things to increase the chances of our login page to show.<\/p>\n\n\n\n<p>Here are the concepts and practical tips based on expert advice:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Content Visibility<\/strong>: &#8220;If you have content behind a login page, redirect logged out users to the login page and let search engines see that\u201d. By redirecting logged out users to the login page, it allows search engines to crawl and recognize the page\u2019s existence and relevance and get it indexed.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;\n    &lt;meta charset=&quot;UTF-8&quot;&gt;\n    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;\n    &lt;title&gt;Login Redirect Example&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;!-- Login Page --&gt;\n    &lt;div id=&quot;loginPage&quot; style=&quot;display:none;&quot;&gt;\n        &lt;h1&gt;Login&lt;\/h1&gt;\n        &lt;form action=&quot;\/authenticate&quot; method=&quot;POST&quot;&gt;\n            &lt;label for=&quot;username&quot;&gt;Username:&lt;\/label&gt;\n            &lt;input type=&quot;text&quot; id=&quot;username&quot; name=&quot;username&quot; required&gt;\n            &lt;label for=&quot;password&quot;&gt;Password:&lt;\/label&gt;\n            &lt;input type=&quot;password&quot; id=&quot;password&quot; name=&quot;password&quot; required&gt;\n            &lt;button type=&quot;submit&quot;&gt;Login&lt;\/button&gt;\n        &lt;\/form&gt;\n    &lt;\/div&gt;\n    &lt;!-- Script to Handle Redirection for Logged-Out Users --&gt;\n    &lt;script&gt;\n        \/\/ Function to check if a user is logged in\n        function isLoggedIn() {\n            \/\/ This is a placeholder. Implement your login check logic here.\n            return false; \/\/ Assuming user is not logged in for demonstration\n        }\n        \/\/ Redirect logged out users to the login page\n        window.onload = function() {\n            if (!isLoggedIn()) {\n                document.getElementById('loginPage').style.display = 'block';\n                \/\/ Optionally, set the page title for better SEO\n                document.title = 'Login - Your Service Name';\n            }\n        };\n    &lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">&lt;!<\/span><span style=\"color: #D8DEE9\">DOCTYPE<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">html<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;html<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">lang<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">en<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;head&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">&lt;meta<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">charset<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">UTF-8<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">&lt;meta<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">name<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">viewport<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">content<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">width=device-width, initial-scale=1.0<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">&lt;title&gt;<\/span><span style=\"color: #D8DEE9FF\">Login Redirect Example<\/span><span style=\"color: #81A1C1\">&lt;\/title&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;\/head&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #81A1C1\">&lt;body&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    &lt;!-- Login Page --&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">&lt;div<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">loginPage<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">style<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">display:none;<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;h1&gt;<\/span><span style=\"color: #D8DEE9FF\">Login<\/span><span style=\"color: #81A1C1\">&lt;\/h1&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;form<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">action<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">\/authenticate<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">method<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">POST<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #81A1C1\">&lt;label<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">for<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">username<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D8DEE9FF\">Username:<\/span><span style=\"color: #81A1C1\">&lt;\/label&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #81A1C1\">&lt;input<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">type<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">text<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">username<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">name<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">username<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">required<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #81A1C1\">&lt;label<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">for<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">password<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D8DEE9FF\">Password:<\/span><span style=\"color: #81A1C1\">&lt;\/label&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #81A1C1\">&lt;input<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">type<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">password<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">id<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">password<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">name<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">password<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">required<\/span><span style=\"color: #81A1C1\">&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #81A1C1\">&lt;button<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #8FBCBB\">type<\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #A3BE8C\">submit<\/span><span style=\"color: #ECEFF4\">&quot;<\/span><span style=\"color: #81A1C1\">&gt;<\/span><span style=\"color: #D8DEE9FF\">Login<\/span><span style=\"color: #81A1C1\">&lt;\/button&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">&lt;\/form&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">&lt;\/div&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    &lt;!-- Script to Handle Redirection for Logged-Out Users --&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">&lt;script&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        \/\/ Function to check if a user is logged in<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        function isLoggedIn() <\/span><span style=\"color: #81A1C1\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">            <\/span><span style=\"color: #616E88\">\/\/ This is a placeholder. Implement your login check logic here.<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #D8DEE9\">return<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">false<\/span><span style=\"color: #D8DEE9FF\">; <\/span><span style=\"color: #616E88\">\/\/ Assuming user is not logged in for demonstration<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        <\/span><span style=\"color: #81A1C1\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        \/\/ Redirect logged out users to the login page<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">        window.onload = function() <\/span><span style=\"color: #81A1C1\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">            <\/span><span style=\"color: #88C0D0\">if<\/span><span style=\"color: #D8DEE9FF\"> (<\/span><span style=\"color: #81A1C1\">!<\/span><span style=\"color: #88C0D0\">isLoggedIn<\/span><span style=\"color: #D8DEE9FF\">()) <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">                document.getElementById(<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">loginPage<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #88C0D0\">).style.display = <\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">block<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #88C0D0\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">                <\/span><span style=\"color: #616E88\">\/\/ Optionally, set the page title for better SEO<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">                document.title = <\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #A3BE8C\">Login - Your Service Name<\/span><span style=\"color: #ECEFF4\">&#39;<\/span><span style=\"color: #88C0D0\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">            }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">        };<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">    &lt;\/script&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">&lt;\/body&gt;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">&lt;\/html&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Here is the HTML example of a basic login page that shows only to users who are not logged in.<\/p>\n\n\n\n<p>It has a script that checks the user\u2019s login status and shows the login form if the user is not authenticated.<\/p>\n\n\n\n<p>Make sure to replace <code>isLoggedIn <\/code>function with your actual authentication logic for this to work in a production environment. By doing this you are letting search engines see the login page and get it to show in Sitelinks as mentioned earlier.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Indexability<\/strong>:&#8221;Make sure your login page is indexable. Don&#8217;t use no index, and don&#8217;t block crawling with robots.txt.&#8221;. Ensure your login page is <a href=\"https:\/\/kwebby.com\/blog\/what-does-discovered-currently-not-indexed-mean-7-fixes\/\" data-type=\"post\" data-id=\"23121\">indexable<\/a>. This means don\u2019t use noindex and don\u2019t block crawling with<a href=\"https:\/\/kwebby.com\/blog\/robotstxt-for-seo\/\" data-type=\"post\" data-id=\"12922\"> robots.txt<\/a>. When search engines can crawl and index your login page it will increase the chances of it to show in search results.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"User-agent: *\nDisallow: \/private\/\nDisallow: \/tmp\/\nDisallow: \/login? \nAllow: \/login\nAllow: \/public-content\/\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D8DEE9\">User<\/span><span style=\"color: #81A1C1\">-<\/span><span style=\"color: #D8DEE9FF\">agent<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">*<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">Disallow<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #EBCB8B\"> <\/span><span style=\"color: #ECEFF4\">\/<\/span><span style=\"color: #EBCB8B\">private<\/span><span style=\"color: #ECEFF4\">\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">Disallow<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #EBCB8B\"> <\/span><span style=\"color: #ECEFF4\">\/<\/span><span style=\"color: #EBCB8B\">tmp<\/span><span style=\"color: #ECEFF4\">\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">Disallow<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">login<\/span><span style=\"color: #81A1C1\">?<\/span><span style=\"color: #D8DEE9FF\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9\">Allow<\/span><span style=\"color: #81A1C1\">:<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">\/<\/span><span style=\"color: #D8DEE9\">login<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">Allow<\/span><span style=\"color: #ECEFF4\">:<\/span><span style=\"color: #EBCB8B\"> <\/span><span style=\"color: #ECEFF4\">\/<\/span><span style=\"color: #EBCB8B\">public-content<\/span><span style=\"color: #ECEFF4\">\/<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>In this example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>User-agent<\/strong>: * means the following rules applies to all web crawlers.<\/li>\n\n\n\n<li><strong>Disallow<\/strong>: \/private\/ and Disallow: \/tmp\/ means crawlers can\u2019t access those directories.<\/li>\n\n\n\n<li><strong>Disallow<\/strong>: \/login? means any URL parameters for the login page is blocked while Allow: \/login means crawlers can access the login page itself.<\/li>\n\n\n\n<li><strong>Allow: <\/strong>\/public-content\/ means search engines can index public content in that directory.<\/li>\n<\/ul>\n\n\n\n<p>This setup balances protection of sensitive parts of your site and letting search engines to access your login page and get you visible in Sitelinks.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Normal Page Treatment<\/strong>: Once your login page is accessible and indexable &#8220;then your login page will be seen as a normal page on your website and can be indexed accordingly&#8221;. This is the recognition by search engines that will improve your overall visibility in Sitelinks.<\/li>\n<\/ul>\n\n\n\n<p>By doing this businesses can increase the visibility of their login page in Sitelinks and user navigation and engagement. Remember to review these practices as the search engine algorithms change.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>In summary, getting your login page to show in Google Sitelinks is not just a technical thing but a strategic one that requires careful thought of several factors.<\/p>\n\n\n\n<p>By making content visible, indexable and treating your login page as a normal site element you are setting your website to be more discoverable in search results.<\/p>\n\n\n\n<p>Remember to review and adjust your strategies as the search engine algorithms change.<\/p>\n\n\n\n<p>This will also boost your website\u2019s SEO and get users to your site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the ever changing world of search engine optimisation (SEO), one of the biggest questions webmasters and digital marketers have is how to get their&hellip;<\/p>\n","protected":false},"author":1,"featured_media":23219,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[277,3],"tags":[],"class_list":["post-23214","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advanced-seo-techniques","category-seo"],"_links":{"self":[{"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/posts\/23214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/comments?post=23214"}],"version-history":[{"count":0,"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/posts\/23214\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/media\/23219"}],"wp:attachment":[{"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/media?parent=23214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/categories?post=23214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kwebby.com\/blog\/wp-json\/wp\/v2\/tags?post=23214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}