Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Oct 2002
    Location
    Nashville, Tennessee
    Posts
    133
    Member #
    233
    Hi all! I'm working on something at my job, and I need to know how to redirect somebody coming to http://mail.somedomain.com to https://mail.somedomain.com

    Isn't that something you can do with a javascript? Or is that something you can do from the web server. Admittedly, I should already know this after my stupid MCSE IIS training, but my brain seems to have a block. Of course, the web server is a Lotus Domino web server....<action>Gags and Vomits</action>...it wasn't my choice of e-mail

    Any help would be greatly appreciated!

  2.  

  3. #2
    Senior Member
    Join Date
    Oct 2002
    Location
    Nashville, Tennessee
    Posts
    133
    Member #
    233
    Nevermind, I got it! Sheesh, I should browse the web before I post here! heheheh....

    You just put the following in your non-SSL encrypted page, and it'll redirect them to the SSL version.

    <html>
    <head>
    <meta http-equiv="refresh" content="0; url=https://mail.domain.com">
    </head>
    </html>

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    You can also do this in PHP...at least I think you can (never included the protocol in the redirector. The advantage is that the change is instantaneous, not the tiny delay caused by the HTML way:
    PHP Code:
    <?
    header
    ("Location: https://mail.domain.com/");
    exit;
    ?>
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  5. #4
    Senior Member
    Join Date
    Oct 2002
    Location
    Nashville, Tennessee
    Posts
    133
    Member #
    233
    Oh, that's cool...

    Thanks!

  6. #5
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    I might be missing something but isn't http://mail.somedomain.com and https://mail.somedomain.com the same location, the only differnce is that how it is accessed, i.e. it will be same index.html or index.php that will be served either way, encrypted or not.

    If so, wouldn't both Meta Refresh and Filburt's code create an infinite loop?

    Just trying to understand the darn thing
    There and Back Again :Ogre:

  7. #6
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    One's secure, one's not (a la the https). Although it will depend on how your host is set up, so it's possible that you could get an infinite loop.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:55 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com