Monday, September 23, 2013

[WD&D] Digest for - 15 Messages in 3 Topics


    Artist <> Sep 23 11:25AM -0700  

    OK, here's My problem:
    I have an email contact web form on My site at *HD Web Hosting*. I have
    secured it with an SSL Certificate (the techs set that and My required
    dedicated IP address) up for Me and I have set all the site links to use
    the https:// address for the secure form so that all traffic arriving at
    the site should be directed to the secure form.
    Today is the deadline for securing email for health care industry
    professionals, by the way.
    And the form is secured, UNLESS someone types the http:// address in
    directly, deliberately deletes the s in https and hits return, or arrives
    from an off-site link that uses the old http address.
    So, I was thinking that I should redirect traffic sent to the http://
    address to the https:// address and attempted to do so through the
    .htaccess file (Apache server). However, .htaccess does not actually
    support this.
    So I am wondering how I can cover this using another redirect method?
    -Thanks in advance for your help!... Doug


    "Michael J. Fuhrman" <> Sep 23 11:39AM -0700  

    You can use JavaScript, or you can use the HTML header block to
    redirect, or you could write a PHP script that simply redirects the web
    browser to the correct page.
    Suggestion #1 - use javascript to redirect users
    windown.location = ""
    Suggestion #2 - use HTML header block to redirect users
    <!-- Send users to the new location. -->
    <META HTTP-EQUIV="refresh"
    This page has moved. You will be
    automatically redirected
    to its new location in 10 seconds.
    If you aren't forwarded
    to the new page,
    <a href="">
    click here</a>.
    Suggestion #3 - use PHP header function to redirect users
    header ("");
    On 9/23/2013 11:25 AM, Artist wrote:


    "Michael J. Fuhrman" <> Sep 23 12:12PM -0700  

    So let me understand this correctly. The Web Server is pointing ... and
    to the same drive path
    well then, I would suggest this ...
    Using PHP, determine if the calling URL is http or https. If it's http,
    then use the PHP header function to redirect the web browser to https.
    So your PHP page, "footmassage.php" would look like this:
    if(! isset($_SERVER['HTTPS'] ) ) header
    On 9/23/2013 11:59 AM, Artist wrote:


    Binaek Sarkar <> Sep 24 02:01AM +0530  

    A quick Google search shows that you can do it in htaccess.
    Try this link:
    I haven't tried it myself, but from the looks of it, it should work.
    @Michael: I think Doug wants to apply the same redirection to all resources
    under that domain. If that is so, a JavaScript or even a PHP solution of
    redirection becomes redundant. You would have to repeat the code
    everywhere. Even if you make it into a separate file, that would still
    imply that you have to include it everywhere.
    Binaek Sarkar


    "Michael J. Fuhrman" <> Sep 23 02:07PM -0700  

    Ah, that would make sense, vs just doing it for one file. Though,
    personally, I would not have a http or https point to the same directory
    structure. Especially, if there is a need to insure that the
    information is encrypted when transmitted.
    On 9/23/2013 1:31 PM, Binaek Sarkar wrote:


    Joe Kelly <> Sep 23 05:38PM -0700  

    You need Redirect not Rewrite they work differently..
    Not sure if this was posted assuming you are using mod_rewrite.
    The reason your previous example was a loop was because there was no
    condition for the redirect.
    Redirect 301 /contact.shtml
    They have an example on the page I linked along the lines of:
    <If "%{SERVER_PROTOCOL} != 'HTTPS'">
    Redirect /admin/</If>
    Sorry if this isn't super helpful. In a rush to leave work.


    Artist <> Sep 23 08:17PM -0500  

    <If "%{SERVER_PROTOCOL} != 'HTTPS'">
    Redirect /contact.shtml
    ...that produced a 500 error on every page I loaded on the site. This is
    in the .htaccess file?
    Jeepers, now I am lost. I didn't think .htaccess supports <IF> statements.
    Must be some other config file.
    Doug Peters


    Ben Hussenet <> Sep 24 04:46AM +0100  

    alternativly put the contact form in its own directory. put a htaccess in
    that directory and use this
    Place the following code in a .htacces file in your folder:
    RewriteEngine OnRewriteCond %{SERVER_PORT} !443RewriteRule (.*) [R]
    Many Thanks
    Ben Hussenet


    Artist <> Sep 23 11:37AM -0700  

    > What do you all run?
    I have...
    Sony Vaio 2.x GHz duo Core Processor Full HD 1080P laptop (they call it a
    notebook, but it is too big, 19", for that).
    Samsung Galaxy Note II (quad processor 5.5" mini-tablet phone).
    I am setting up a couple other PCs as servers. One for the home (dual core
    3 GHz) files and sharing, and another single core 2 GHz to play with Linux,
    I also have 2 tablets and they have all crapped-out on Me and are unusable.
    I also returned another one, forget the brand of that one...
    ASUS TF101 Transformer w/ kb
    Poloroid 7" Internet Tablet


    Artist <> Sep 23 11:23AM -0700  

    Today is the deadline, by the way.
    On Friday, August 9, 2013 11:56:15 PM UTC-5, Artist wrote:


You received this because you are subscribed to the "Web Design and Development" group at Google Groups. Messages are prefixed with [WD&D] in the subject. No spam is allowed. Be civil, be professional; try to be helpful & mind your netiquette. All posts are Copyright the original author and the Web Design and Development group. No reproduction of this content is allowed in any electronic or printed form outside the group at Google Groups and the website. Any unauthorized use of our copy constitutes illegal Copyright infringement and may well be prosecuted to the full extent of the law. Digital Signature: $©"[W|D|&|D]g"|^|!SiteDesign@GG||#%$
To post to this group, email
To unsubscribe, email
For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Web Design and Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit

1 comment:

  1. Did you know that you can generate money by locking special areas of your blog or site?
    Simply open an account on AdscendMedia and run their content locking widget.