htaccess rewrite rule to https let my apps stop working

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Fri Aug 18 08:42:03 EDT 2017


Hi Tiemo,

it´s messed up.
Please use the link
https://dl.qck.nu//?dl=sample_htaccess.txt <https://dl.qck.nu//?dl=sample_htaccess.txt>
to download the textfile.

I´ve forgot to mention that you have to replace yourdomain.com <http://yourdomain.com/> with your domain.

Matthias
> Am 18.08.2017 um 14:25 schrieb Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com <mailto:use-livecode at lists.runrev.com>>:
> 
> Hi Tiemo,
> 
> we are using the following code in the htaccess to redirect  http:// request (either with or without www) to https://www.multitronic.de <https://www.multitronic.de/> <https://www.multitronic.de/ <https://www.multitronic.de/>>
> 
> RewriteEngine on
> RewriteCond %{HTTPS} off
> RewriteCond %{HTTP_HOST} ^yourdomain.com <http://yourdomain.com/> <http://yourdomain.com/ <http://yourdomain.com/>>$ [NC,OR]
> RewriteCond %{HTTP_HOST} ^www.yourdomain.com <http://www.yourdomain.com/> <http://www.yourdomain.com/ <http://www.yourdomain.com/>>$ [NC]
> RewriteRule (.*) https://www.yourdomain.com/$1 <https://www.yourdomain.com/$1> <https://www.yourdomain.com/$1 <https://www.yourdomain.com/$1>> [R=301,L]
> RewriteCond %{HTTP_HOST} ^yourdomain.com <http://yourdomain.com/> <http://yourdomain.com/ <http://yourdomain.com/>>$ [NC]
> RewriteRule (.*) https://www.yourdomain.com/$1 <https://www.yourdomain.com/$1> <https://www.yourdomain.com/$1 <https://www.yourdomain.com/$1>> [R=301,L]
> 
> 
> if the sample code is mixed up then you´ll find it also here as text file for download
> 
> https://dl.qck.nu//?dl=sample_htaccess.txt <https://dl.qck.nu//?dl=sample_htaccess.txt> <https://dl.qck.nu//?dl=sample_htaccess.txt <https://dl.qck.nu//?dl=sample_htaccess.txt>>
> 
> 
> HTH
> Matthias
> 




More information about the use-livecode mailing list