# Crawling www.mydomain.com (Drupal 7 site) but links are indexed as http://mydomain.com (without the www). Why?

**URL:** <https://community.swiftype.com/t/crawling-www-mydomain-com-drupal-7-site-but-links-are-indexed-as-http-mydomain-com-without-the-www-why/624>\
**Category:** Setup & Indexing\
**Created:** [March 20, 2018, 2:14pm UTC](https://community.swiftype.com/t/crawling-www-mydomain-com-drupal-7-site-but-links-are-indexed-as-http-mydomain-com-without-the-www-why/624 "2018-03-20T14:14:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yanick.girouard](https://avatars.discourse-cdn.com/v4/letter/y/9de053/32.png) [@yanick.girouard](https://community.swiftype.com/u/yanick.girouard)\
**Post date:** [March 20, 2018, 2:14pm UTC](https://community.swiftype.com/t/crawling-www-mydomain-com-drupal-7-site-but-links-are-indexed-as-http-mydomain-com-without-the-www-why/624/1 "2018-03-20T14:14:29Z")

</div>

I’m testing Swiftype for a Drupal 7 site, and I’m having a problem where even though I’m asking to crawl [https://www.mydomain.com](https://www.mydomain.com), some of the pages being indexed are showing [http://mydomain.com/the/page/](http://mydomain.com/the/page/) as their URL in the search results. The protocol is wrong (http instead of https) and so is the domain prefix. Why is it doing so and what should I change to fix it? Is this a Drupal thing?

The site is only using a robots.txt file to restrict the crawling to certain areas, and does not have a sitemap.xml file.
