Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
The site I am working on is using pretty URLs and an SSL certificate. I installed the certificate, changed the 'K_SITE_URL' to include https, changed 'K_PRETTY_URLS' to 1 and ran gen_htaccess.php. I copied the output into .htaccess at the root of the site and now the site is showing infinate redirects.

Any help with this would be appreciated. I can send over site details (including ftp/control panel access) if it would be helpful.
Hi,

Please PM your site's FTP+Couch access creds and I'll take a look at the problem.

Thanks.
Thanks for the creds.

I commented out the 'K_SITE_URL' setting in config (as it is necessary only when Couch is unable to figure out the host name correctly).

The https URLs now seem to be working fine.
Please check and verify.
This worked exactly as expected/desired. Thank you very much for fixing this for me. I'd be interested to know why the problem occurred or where to look to figure it out.
As I mentioned in my last reply, I simply commented out the 'K_SITE_URL' setting in config. This setting is required only very rarely when Couch fails to figure out the right URL.

In your case I found that the URL you specified there was 'http' (and not 'https').
This was causing Couch to reject all 'https' requests and redirect them to the 'http' version explicitly specified above.

On the other hand, your .htaccess had a rule to redirect all 'http' requests to 'https'.

As you can see, this was causing the infinite loop.

Once I commented out the config setting, Couch correctly figured out that the right URL for the site would be 'https' and that broke the loop.
5 posts Page 1 of 1