AW: htaccess rewrite rule to https let my apps stop working

Tiemo Hollmann TB toolbook at kestner.de
Fri Aug 18 09:28:48 EDT 2017


Hi Matthias,
Thanks for your example, I'll give it a try
using these Rewrite rules, you could stay with plain http:// URLs in your LC code? And LC doesn't notice the difference and everything works as before? Do you call PHPs on your server? Could there be a difference between html and php calls with return values?
Tiemo


-----Ursprüngliche Nachricht-----
Von: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] Im Auftrag von Matthias Rebbe via use-livecode
Gesendet: Freitag, 18. August 2017 14:42
An: How to use LiveCode <use-livecode at lists.runrev.com>
Cc: Matthias Rebbe <matthias_livecode_150811 at m-r-d.de>
Betreff: Re: htaccess rewrite rule to https let my apps stop working

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
> 

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list