Secure Site HTTPS

Permalink
Hi tried playing around with config/site.php to "force"http://www.sitename.com but Firefox says it detected an "unending" loop?

How does one make the entire website load as HTTPS including the CMS backend? thanks!

 
frz replied on at Permalink Reply
frz
what do the path /base url parts of your site.php file look like?
redtype replied on at Permalink Reply
<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'mysql_01');
define('DB_PASSWORD', 'snip');
define('DB_DATABASE', 'mysql_01');
define('BASE_URL', 'http://www.sitename.com');
define('DIR_REL', '');
define('PASSWORD_SALT', 'snip');
?>


(edited by admin for security reasons)
tcmfan replied on at Permalink Reply
tcmfan
change http:// to https://
redtype replied on at Permalink Reply
hi tcmfan thanks for that suggestion and i tried that but here's the error in firefox…

right now i'm in c5 login mode so it's trying to direct it to the login page.

[Edit] even if i was in public mode it still gives me the same error.

Redirect Loop

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete.

* Have you disabled or blocked cookies required by this site?
* NOTE: If accepting the site's cookies does not resolve the problem, it is likely a server configuration issue and not your computer.
ryan replied on at Permalink Reply
ryan
Do you have any mod_rewrite rules, pretty urls enabled? If so print the contents of your .htaccess file.

By the way, you may want to change the password to your mysql database now that it's been posted online ;-)
ryan replied on at Permalink Reply
ryan
Kinda grasping at straws here, but you may also want to go into the dashboard -> sitewide settings -> debug -> clear cache. Then change the url back to https & try again..
redtype replied on at Permalink Reply
hi ryan, tried the clear cache trick, didn't work, still getting the redirect loop. thanks!
redtype replied on at Permalink Reply
thanks ryan. hehe. details were fake. just to make it as "real" as possible.

thanks for the tip on clear cache.

.htaccess is as follows

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
jgarcia replied on at Permalink Reply
jgarcia
i'm getting the same firefox redirect loop as redtype. any ideas on how to fix this?

the redirect loop only occurs when i change my BASE_URL to the https. when it's just http, it works fine.

i have tried this with and without the .htaccess file, with and without pretty url's on.
ryan replied on at Permalink Reply
ryan
This will keep concrete from redirecting to the base url & should resolve the redirect loop problem.
Add this to your config/site.php
<?php
define('REDIRECT_TO_BASE_URL',false);
?>
jgarcia replied on at Permalink Reply
jgarcia
thanks ryan. that solves my problem!
froottools replied on at Permalink Reply
Thank you for the solution.
msglueck replied on at Permalink Reply
msglueck
Thanks. Also did the job for me! Merci beaucoup!