.htaccess Quick Q?!?! SSL

by 3 replies
4
#programming #htaccess #quick #ssl
  • Hey Scott,

    You shouldn't be getting a pop-up warning for any browsers - it's possible your security certificate is not installed correctly.

    I would suggest not using a 301 redirect, rather use the following and repeat it for other uri's:
    Code:
    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 80 
    RewriteCond %{REQUEST_URI} secure-folder 
    RewriteRule ^(.*)$ https://www .mydomain.com/secure-folder/$1 [R,L]
    Note: remove space after "www"
    • [ 1 ] Thanks
    • [1] reply
    • Not true.
      All linked resources and links in general or anything pointing outside the https page must also be https or IE will pop up that warning message.

      Other browsers will not complain as bad, but they will usually not show the enlarged https highlighted favicon area in the beginning of the address bar.

      You need to go through the pages that are https and make sure all items in the page are also https.
      NOTE: if its an external link, and the SSL is not valid on their site, users will get a similar error and it will reflect on you for sending them there. So just don't change everything to https without knowing.
      • [ 1 ] Thanks
      • [1] reply

Next Topics on Trending Feed

  • 4

    Ok so I have SSL on installed on a domain. I don't need all the pages to be secured (https) b/c there's no point... And if you're looking at the website in IE every time you visit a HTTPS page the pop-up warning box comes up... I only want to have certain pages to load as HTTPS vs HTTP - such as the contact pages, submission forms, etc...