How to create an App (Tile) on the My Apps Dashboard with a redirect?
-
translatorwrote on Nov 18, 2020, 9:29 PM last edited by girish Nov 19, 2020, 2:29 AM
I got a user request to add a "Tile"/app to the My Apps Dashboard that only leads to an external URL (our NAS in this case).
How can I do that easily?
(I tried Surfer but php neither htaccess redirections worked)
-
What @fbartels said. Put this in index.html or surfer (replace url):
<!DOCTYPE html> <html> <head> <title>HTML Meta Tag</title> <meta http-equiv = "refresh" content = "2; url = https://www.cloudron.io" /> </head> <body> <p>Will redirect shortly to https://www.cloudron.io/.</p> </body> </html>
-
I got a user request to add a "Tile"/app to the My Apps Dashboard that only leads to an external URL (our NAS in this case).
How can I do that easily?
(I tried Surfer but php neither htaccess redirections worked)
@imc67 surfer is a node app, it does not support php or understand .htaccess. the one thing that should work however is simple html:
-
What @fbartels said. Put this in index.html or surfer (replace url):
<!DOCTYPE html> <html> <head> <title>HTML Meta Tag</title> <meta http-equiv = "refresh" content = "2; url = https://www.cloudron.io" /> </head> <body> <p>Will redirect shortly to https://www.cloudron.io/.</p> </body> </html>
-
What @fbartels said. Put this in index.html or surfer (replace url):
<!DOCTYPE html> <html> <head> <title>HTML Meta Tag</title> <meta http-equiv = "refresh" content = "2; url = https://www.cloudron.io" /> </head> <body> <p>Will redirect shortly to https://www.cloudron.io/.</p> </body> </html>
wrote on Nov 19, 2020, 12:14 AM last edited by@girish I just tried doing that just to try it out, worked perfectly
-
What @fbartels said. Put this in index.html or surfer (replace url):
<!DOCTYPE html> <html> <head> <title>HTML Meta Tag</title> <meta http-equiv = "refresh" content = "2; url = https://www.cloudron.io" /> </head> <body> <p>Will redirect shortly to https://www.cloudron.io/.</p> </body> </html>
@girish this works!!! Thanks for the hint.
-
-
wrote on Sep 18, 2022, 3:34 PM last edited by
I did it using the LAMP app. Just edit the .htaccess within /app/data/public/
RewriteEngine On RewriteCond %{HTTP_HOST} ^lampapp.domain.com [NC] RewriteRule (.*) https://target.domain.com/$1 [R=302,L]
-