[FX.php List] [OFF] Rewrite for forcing http to https possible?

biscuit technologies biscuit.tech at gmail.com
Thu Sep 11 16:54:37 MDT 2008


Give this is a try:RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

- David

On Thu, Sep 11, 2008 at 3:45 PM, Troy Meyers <tcmeyers at troymeyers.com>wrote:

> David,
>
> It seems like that takes any non-SSL page request and sends it to the site
> top. What I need is for the requested URL to be honored, but just switched
> to https: first.
>
> In other words, if someone does:
> http://lab.troymeyers.com/flasking/article.php?about=Flaskling_Care
>
> ...I want it to go to:
> https://lab.troymeyers.com/flasking/article.php?about=Flaskling_Care
>
> ...rather than to:
> https://lab.troymeyers.com
>
> -Troy
>
>
> > I use .htaccess and this is the syntax:SSLOptions +StrictRequire
> > SSLRequireSSL
> > SSLRequire %{HTTP_HOST} eq "yoursite.com"
> > ErrorDocument 403 https://yoursite.com
> >
> > hopefully this will work for you,
> >
> > David
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080911/4654ff79/attachment-0001.html


More information about the FX.php_List mailing list