This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

logout redirect
#1
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
Reply
#2
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?
Reply
#3
(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?
Reply
#4
You cannot access it via FTP, but it can be written from a script:
Code:
io.writefile('/www/index.html', 'html data here')
Reply
#5
(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>
Reply
#6
Try clearing browser cache
Reply


Forum Jump: