Moron Posted November 10, 2010 Share Posted November 10, 2010 Okay, my organanization has a page that we really need to autodirect to https:// in case anyone manually types in the http:// version. I've tried this (among many others) and it just sits there like a knot on a log: <?php header( "Location: https://www.mywebsite.com/myfile.php" ) ; ?> Any ideas? It just simply doesn't redirect. It just sits there in its http:// format. I've also tried numerous other methods. None of them worked, either, but this is the simplest. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/218296-redirect-http-to-https-why-wont-this-work/ Share on other sites More sharing options...
ManiacDan Posted November 10, 2010 Share Posted November 10, 2010 Normally you need an exit() after a header() call, but that doesn't explain why it's doing nothing... Get the LIVE HTTP HEADERS plugin for firefox, see what's happening on your machine. -Dan Quote Link to comment https://forums.phpfreaks.com/topic/218296-redirect-http-to-https-why-wont-this-work/#findComment-1132638 Share on other sites More sharing options...
Moron Posted November 10, 2010 Author Share Posted November 10, 2010 Never mind. It's fixed. A certain dummy ( ) was editing the wrong version of the file.... Quote Link to comment https://forums.phpfreaks.com/topic/218296-redirect-http-to-https-why-wont-this-work/#findComment-1132640 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.