RE: [PHP] redirect http to https
| From: | Peter Lauri | Date: | Mon, 09 Apr 2007 15:41:25 +0000 |
| Subject: | RE: [PHP] redirect http to https | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-252321@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ben Liu [mailto:blzabub8@gmail.com]
> Sent: Monday, April 09, 2007 3:52 PM
> To: Martin Marques; PHP
> Subject: Re: [PHP] redirect http to https
>
> On 4/9/07, Martin Marques <martin@bugs.unl.edu.ar> wrote:
>
> >
> > This should be done with the rewrite instruction of apache, or what ever
> > instructionyour web server has.
>
> Um...guess I will have to check with our hosting company about this.
> Thanks.
>
> - Ben
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
[Peter Lauri - DWS Asia]
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]
------
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free