Logic Machine Forum
logout redirect - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: logout redirect (/showthread.php?tid=2468)



logout redirect - JohnTH - 12.02.2020

Hi,

Is there a way to change the url /logout redirects to ?
I want it to go to http://<ip>/scada-vis instead of http://<ip>/apps/

-John


RE: logout redirect - admin - 12.02.2020

Not possible directly, one possible solution is to overwrite default index.html file so when you visit http://IP/ you will be redirected to http://IP/scada-vis. Will this work for you?


RE: logout redirect - espenavitell - 12.11.2020

(12.02.2020, 14:18)admin Wrote: Not possible directly, one possible solution is to overwrite default index.html file so when you visit http://IP/ you will be redirected to http://IP/scada-vis. Will this work for you?
How can i access the index.html file, while logged in with apps on ftp i cant find any files?


RE: logout redirect - admin - 12.11.2020

You cannot access it via FTP, but it can be written from a script:
Code:
io.writefile('/www/index.html', 'html data here')



RE: logout redirect - espenavitell - 12.11.2020

(12.11.2020, 10:27)admin Wrote: You cannot access it via FTP, but it can be written from a script:
Code:
io.writefile('/www/index.html', 'html data here')
I tried and i manged to write to det html file, but it didnt solve my problem
This is my index.html file 
<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;URL=/scada-vis/"></head><body></body></html>



RE: logout redirect - admin - 12.11.2020

Try clearing browser cache