RE: redirect http to https

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Ben Liu [mailto:blzabub8@xxxxxxxxx]
> Sent: Monday, April 09, 2007 3:52 PM
> To: Martin Marques; PHP
> Subject: Re:  redirect http to https
> 
> On 4/9/07, Martin Marques <martin@xxxxxxxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux