Solved How to create an App (Tile) on the My Apps Dashboard with a redirect?
-
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>
-
@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>
-
@girish I just tried doing that just to try it out, worked perfectly
-
@girish this works!!! Thanks for the hint.
-
marcusquinn
-
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]
-
To follow up here, the next release 7.3 has built-in support for external links in the dashboard, so it will be unnecessary to install some trampoline app like surfer or lamp.