• 主页

php

Force SSL in Apache

If you don't want to use http, make sure all your incoming connections go through port 443.
Write this to your .htaccess file on the root directory of your site.

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Email This BlogThis! Share to X Share to Facebook
Tuesday, November 15, 2011

Blogger templates

Blogger news

Blogroll

Archives

  • ►  2013 (219)
    • ►  December (26)
    • ►  November (19)
    • ►  October (23)
    • ►  September (16)
    • ►  August (13)
    • ►  July (25)
    • ►  June (18)
    • ►  May (18)
    • ►  April (8)
    • ►  March (19)
    • ►  February (22)
    • ►  January (12)
  • ►  2012 (231)
    • ►  December (19)
    • ►  November (21)
    • ►  October (17)
    • ►  September (13)
    • ►  August (17)
    • ►  July (18)
    • ►  June (20)
    • ►  May (21)
    • ►  April (22)
    • ►  March (26)
    • ►  February (19)
    • ►  January (18)
  • ▼  2011 (212)
    • ►  December (22)
    • ▼  November (18)
      • preg_match() or search a string / substring in php
      • Que se puede hacer con PHP?
      • Use custom slug manipulation for sluggable field i...
      • PHP comparison operators
      • Downloading as csv/excel file in php using headers
      • PHP function stripos is not working in PHP 4
      • Avoid using Large String Concatenation
      • Installing PNP
      • Php For Statement
      • PHP Ming
      • MySQL DATE TIME Format Conversion
      • Force SSL in Apache
      • section\tmpl
      • select in php with mysql
      • Excellent codeigniter tutorials for biginners and ...
      • using windows command line smartly
      • Auto Resize image With PHP
      • The $_POST Function
    • ►  October (10)
    • ►  September (20)
    • ►  August (17)
    • ►  July (22)
    • ►  June (23)
    • ►  May (16)
    • ►  April (11)
    • ►  March (15)
    • ►  February (21)
    • ►  January (17)