auto adding https and not working

cashmusic's Avatar


28 Jan, 2011 11:27 PM

Hey -
I am semi-new to this but I followed all of the steps. However, after authenticating with twitter... it takes me back to https://..... /callback.php instead of http://..../callback.php

See here:

It brings me back to something like this...

which doesn't work....
but if I delete the "s" and go to:

then it works and sends the tweet and everything! How do I make it so twitter sends me back to the site without https://??

  1. Support Staff 1 Posted by Jesse von Doom on 29 Jan, 2011 12:09 AM

    Jesse von Doom's Avatar

    Hmm. That's odd. I'd suggest first checking your config.php and making
    sure that the https link isn't specified in there, then look at the
    application settings on Twitter and make sure of the same thing there.

  2. 2 Posted by cashmusic on 29 Jan, 2011 03:37 AM

    cashmusic's Avatar

    All good on the twitter side...

    On the config.php file there isn't even anywhere to specify https

    (See attached)

  3. Support Staff 3 Posted by Jesse von Doom on 29 Jan, 2011 04:18 AM

    Jesse von Doom's Avatar

    That's really odd! For some reason your server thinks it's running a
    secure page and is appending the "s" when it pushes to Twitter...

    I'd love to find out *why* but as a temporary fix, try this:

    Open redirect.php and look, midway down, for this line:

    /* Get temporary credentials. */
    $callbackurl = 'http'.((empty($_SERVER['HTTPS'])&&

    Change it to:

    /* Get temporary credentials. */
    $callbackurl = 'http://'.

    -- that should force http-only, and I'll look into the false positive
    to try to fix...


  4. 4 Posted by cashmusic on 29 Jan, 2011 07:36 AM

    cashmusic's Avatar

    Awesome. It works great! Will this be permanent fix?

    It's now live at:

  5. Support Staff 5 Posted by Jesse von Doom on 29 Jan, 2011 10:23 PM

    Jesse von Doom's Avatar

    Yeah it's a permanent fix for you. I need to do more research and see
    why your server was responding "yes" when we ask if it's running a
    secure page. First time we've seen it. —but your site is fixed for
    good. Good luck with it!

  6. 6 Posted by cashmusic on 29 Jan, 2011 11:18 PM

    cashmusic's Avatar

    I just bought a cheap GoDaddy windows hosting account with all of the default settings. Idk if that helps in your search to find the problem.

  7. Jesse von Doom closed this discussion on 28 Dec, 2011 06:48 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac