htaccess rewrite rule to https let my apps stop working

Matthias Rebbe matthias_livecode_150811 at m-r-d.de
Fri Aug 18 10:41:12 EDT 2017


Hi Tiemo,
although i was pretty sure that this works here i´ve checked again.
From the message box i called an .lc script  which exports db data. I used http:// as prefix and the data was returned w/o a problem.

Calling the same url from browser works the same. It isautomatically redirected by the server and the data is returned.

We are calling lc and php scripts on our server from our programs to fetch data and all is working.

Btw.: Maybe this is of interest for the one or the other.
Today we´ve created the first Rapidweaver page which uses a livecode server script for form processing and db access directly in a stack instead of showing that lc script in a frame. I´ve never have thought that this will work. It´s very simple to integrate.




> Am 18.08.2017 um 15:28 schrieb Tiemo Hollmann TB via use-livecode <use-livecode at lists.runrev.com>:
> 
> 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
> 
> 
> _______________________________________________
> 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