Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi all,

I should start by saying that I'm not sure if this has anything to do with Couch, but the hosting service told me to "check my CMS" for rewriting issues.

I have a site that works perfectly when there is a "www" in the domain name :
http://www.study-technologies.com (it has a redirect from the root to the /fr folder)

But if you type the domain without the "www" prefix, it sends you to an older version of the site which is hosted on the same machine, and which will soon be deleted :
http://study-technologies.com

I've looked in Couch's generated htaccess file and I can't see anything weird, so I'm wondering if there's anywhere else within Couch where I could look. Personally I don't think Couch is the issue, but I wanted to be sure. Has anyone had any similar experiences?
Thanks!
Hi,

Try uncommenting the two lines highlighted below from the .htaccess file -
#If your site begins with 'www', uncomment the following two lines
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

This way any URL without 'www' should be redirected to the one with 'www'.

Does this help?
Hi KK, I've done that, and I deleted the older website too. The result is that I now get redirected to a 403 Forbidden when I type the domain without a "www".

I don't think this is a Couch issue, but I'm a bit stuck on where to look.
From what I could see, the redirect rule we placed in 'www' version of your site is not even being picked up - when we use the non-www URL, the browser is directed straight to the older version of your site (which is now deleted and so gives a forbidden error).

For all practical purposes, your web server is considering the www and non-www URLs as two separate sites. Might be a DNS caching thing up there or perhaps a proxy server in between.

It sure is not a Couch issue so you can state this to your service provider.

Hope the issue gets resolved soon.
Thanks KK, I'm going to pressure the hosting service, and check the entries in the domain registration page too. I'm pretty sure it comes from one of those.
5 posts Page 1 of 1
cron