Jump to content

Redirect http to https - why won't this work?


Moron

Recommended Posts

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!

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.