Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. How to create an App (Tile) on the My Apps Dashboard with a redirect?

How to create an App (Tile) on the My Apps Dashboard with a redirect?

Scheduled Pinned Locked Moved Solved Support
redirect
7 Posts 6 Posters 2.0k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by girish
    #1

    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)

    fbartelsF 1 Reply Last reply
    0
    • girishG Do not disturb
      girishG Do not disturb
      girish
      Staff
      wrote on last edited by
      #3

      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>
      
      jdaviescoatesJ imc67I 2 Replies Last reply
      2
      • imc67I imc67

        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)

        fbartelsF Offline
        fbartelsF Offline
        fbartels
        App Dev
        wrote on last edited by
        #2

        @imc67 surfer is a node app, it does not support php or understand .htaccess. the one thing that should work however is simple html:

        https://en.m.wikipedia.org/wiki/Meta_refresh

        1 Reply Last reply
        0
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #3

          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>
          
          jdaviescoatesJ imc67I 2 Replies Last reply
          2
          • girishG girish

            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>
            
            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #4

            @girish I just tried doing that just to try it out, worked perfectly

            https://testing.uniteddiversity.org/

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            1
            • girishG girish

              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>
              
              imc67I Offline
              imc67I Offline
              imc67
              translator
              wrote on last edited by
              #5

              @girish this works!!! Thanks for the hint.

              1 Reply Last reply
              0
              • marcusquinnM marcusquinn referenced this topic on
              • subvenS Offline
                subvenS Offline
                subven
                wrote on last edited by
                #6

                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]
                
                1 Reply Last reply
                1
                • nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #7

                  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.

                  1 Reply Last reply
                  2
                  • marcusquinnM marcusquinn referenced this topic on

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search