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! 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 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.... 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
Archived
This topic is now archived and is closed to further replies.