Re: redirect http to https
| From: | Ben Liu | Date: | Mon, 09 Apr 2007 15:03:31 +0000 |
| Subject: | Re: redirect http to https | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252324@lists.php.net to get a copy of this message | ||
On 4/9/07, Peter Lauri <lists@dwsasia.com> wrote:
You might be able to do this by putting an .htaccess file in your webroot of non-ssl: ------ RewriteEngine On RewriteRule ^/(.*)$ https://www.yourdomain.com/$1 [L] ------This appears to work: RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [L,R] (sorry if off-topic)