Your situation involves several technical aspects of website indexing, crawling, and redirection. Here's a breakdown of why this happens and how to address it:
1. Why Both HTTP and HTTPS Appear in Search Results
Even if you've added a robots.txt file to block crawling, search engines like Bing may still show outdated URLs (e.g., HTTP) in their index for the following reasons:
- Indexing Lag: Search engines cache URLs in their index. If the site was previously accessible via HTTP, Bing might still have those URLs stored, even if the site now redirects to HTTPS.
- Robots.txt Doesn't Remove Indexed Pages: The
robots.txt file only prevents future crawling. It does not remove existing indexed URLs. To remove them, you need to request removal via Bing Webmaster Tools (or Google Search Console for Google).
- Redirects: If your site redirects HTTP to HTTPS (e.g., via
.htaccess or server configuration), search engines may still index the original HTTP URL as a "canonical" version. However, the redirect ensures users are directed to the HTTPS version.
2. Why the HTTP Link Redirects to HTTPS
This is standard behavior for websites that enforce HTTPS. Here's what's happening:
- Your server is configured to 301 redirect HTTP requests (e.g.,
http://dev-velocityzoom.io) to HTTPS (e.g., https://dev-velocityzoom.io).
- This is done to ensure security and SEO best practices (e.g., avoiding duplicate content).
- Even if the HTTP version is indexed, the redirect ensures users and search engines are directed to the secure version.
3. Why the robots.txt Might Not Be Working as Expected
Your robots.txt file says:
User-agent: *
Disallow: /
This blocks all crawlers from accessing any pages on the site. However:
- If the site was already indexed before this rule was added, Bing may still show the HTTP version in search results.
- If the
robots.txt file is not properly configured (e.g., incorrect placement, syntax errors, or blocked by the server), crawlers may ignore it.
- Search engines may still index the site if it's linked from other websites or if the
robots.txt is not correctly implemented.
4. How to Fix This
Step 1: Ensure Proper HTTPS Configuration
Step 2: Update robots.txt (if needed)
If you want to allow crawling of the HTTPS version, modify robots.txt to:
User-agent: *
Allow: /
This permits all crawlers to access the site. If you still want to block specific paths, adjust accordingly.
Step 3: Request Removal of HTTP URLs in Bing
- Go to Bing Webmaster Tools.
- Submit a URL Removal Request for the HTTP version of your site.
- Use the URL Inspection Tool to check if the HTTP URL is indexed and request its removal.
Step 4: Verify robots.txt is Accessible
- Check your
robots.txt file at http://dev-velocityzoom.io/robots.txt.
- Ensure it is not blocked by the server (e.g., no
X-Robots-Tag headers or Disallow rules that conflict with your goals).
Step 5: Monitor Indexing
- Use Bing Webmaster Tools to monitor the Index Coverage report.
- Ensure the HTTPS version is indexed and the HTTP version is marked as "Excluded" or "Removed."
5. Why the Second Result Says "The Site Won’t Allow Us"
The message "We would like to show you a description here but the site won’t allow us" typically occurs when:
- The site blocks crawlers (e.g., via
robots.txt or X-Robots-Tag headers).
- The site has a
noindex meta tag in its HTML (e.g., <meta name="robots" content="noindex">).
- The site is temporarily unreachable or has a server error.
If you’ve configured robots.txt to disallow all crawling, this is expected. However, if you want Bing to index the site, you must allow crawling (remove Disallow: /).
Summary
- HTTP URLs may remain in Bing’s index due to prior indexing or lack of removal requests.
- Redirects ensure users and crawlers land on the HTTPS version.
robots.txt only blocks future crawling, not existing indexed URLs.
- To fully resolve this, request removal of HTTP URLs via Bing Webmaster Tools and ensure your
robots.txt and HTTPS configuration are correctly set up.
Let me know if you need help checking your robots.txt or configuring redirects!