#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2005
    Posts
    1
    Rep Power
    0

    rewrite http:// to https://


    Originally Posted by wonder_k
    well, this does not seem to work with urls right? i have a similar problem here which is to redirect any requests to http://.... to https://

    this isn't really a question... just have to look it up soemwhere...
    Were you able to redirect requests from (url)http:// to (/url)https:// ? I'm having problems setting it up.

    I want all requests from: http://www.exeqtime.com to redirect to https://www.exeqtime.com Can you help, or do you know anyone that could help?

    Thanks a Lot!
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Posts
    5
    Rep Power
    0
    Originally Posted by nojoking
    I want all requests from: http://www.exeqtime.com to redirect to https://www.exeqtime.com Can you help, or do you know anyone that could help?
    This may not be the best answer but it's better than nothing. Bad news is it depends on PHP:

    File secure.php:
    PHP Code:
    <?php
    if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS']!="on") {
    header("Location: https://" $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
    exit;
    }
    ?>

    In httpd.conf settings, you should be able to include something like:
    Code:
    php_value auto_prepend_file /full/path/to/secure.php
    Hope this helps.
  4. #3
  5. (retired)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2003
    Location
    The Laboratory
    Posts
    10,101
    Rep Power
    0
    Please don't drag up ancient threads - since the last time that those people visited this site was two years ago, it's unlikely you'll get a response.

    --Simon
  6. #4
  7. mod_dev_shed
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    14,817
    Rep Power
    1100
    Redirect to secure URL

    Comments on this post

    • SimonGreenhill agrees : thanks
    # Jeremy

    Explain your problem instead of asking how to do what you decided was the solution.

IMN logo majestic logo threadwatch logo seochat tools logo