I have migrated a wordpress site off of my server onto Cloud9 IDE, I have then used Search and replace to change the URL from http://www.domain.com
to https://project-c9-username.c9.io
Now when I run the site I have a redirect loop.
I have searched all over the internet for a solution, most attempts to solve this issue involve changing the .htaccess
file, however this does not seem to be the issue. I have made a working .htaccess
and it makes no difference.
I am very confused as I have moved wordpress sites before and had no issues.
Let me know if this belongs on a different stack exchange site, because Cloud9 is unknown outside of development circles I didn't want to ask on a lesser known stack exchange site as I know it'll never get answered.
EDIT:
After some more research adding this to wp-config.php
makes the homepage accessible
define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
$_SERVER['HTTPS']='on';
It seems the forced Cloud9 IDE SSL is causing my website to break apart.
This might be caused by HTTPS usage in Cloud9. You can actually use HTTP to access your wordpress site. Simply copy the cloud9 application url to a new window and change https to http. That's it.