Junior Member from GB
joined:May 24, 2006
I've been going around in circles today with my Drupal website and I'm really worried that the "support" team that is helping me has made a mistake, but I don't understand enough to be 100% sure or to know what to do about it.
The problem started this morning when I noticed that the Google custom search box on my site isn't picking up any content that I've added in the last few weeks. I went to Google Webmaster Tools to check my sitemaps were being indexed, and they are. So I used "fetch as Googlebot" to check one of my recent pages, http://www.example.com/example-page
The response was "redirected" with the following information:
HTTP/1.1 301 Moved Permanently
Expires: Sat, 26 Jul 2014 11:26:00 GMT
Content-Type: text/html; charset=iso-8859-1
Date: Sat, 12 Jul 2014 22:29:38 GMT
X-Varnish: 1728007996 1727157242
Via: 1.1 varnish
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>301 Moved Permanently</title>
<p>The document has moved <a href="http://example.com/example-page">here</a>.</p>
My site has always used www. at the front of the domain, and I haven't made any changes myself. I don't know why there should be a 301 redirecting the www to a non-www all of a sudden. In GWT my site is listed as http://www.example.com.
So I emailed my support people with the above information and asked whether somebody might have made some changes for any reason, or perhaps the change might have happened during an update.
Instead of receiving a yes / no answer, I got this response:
<< I've just modified .htaccess file so that your website is indexed both with and without "www". Please let us know if you want it to be available only through "www". >>
I really don't understand the .htaccess file but have a really bad feeling that making it both with and without www is absolutely the wrong thing to do? Am I right in thinking that would mean I have effectively two versions of each page to be crawled?
So I guess my two most immediate questions are
1. Should they have made these changes to the htaccess?
2. If not, what should I ask them to do to fix the problem?
Obviously I've also still got to find out why all my pages are suddenly being redirected away from the www. Any why my search box isn't working anymore!
Any help would be much appreciated. I've had a hard time with my website recently anyway and I'm terrified that today's change to the htaccess will be the final straw.
[edited by: incrediBILL at 1:41 am (utc) on Jul 13, 2014]
[edit reason] Please use EXAMPLE.COM for all domain names [/edit]