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:[email protected]] Im Auftrag von Matthias Rebbe via use-livecode Gesendet: Freitag, 18. August 2017 14:42 An: How to use LiveCode <[email protected]> Cc: Matthias Rebbe <[email protected]> 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 > <[email protected] <mailto:[email protected]>>: > > 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 [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
