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. Surfer
  3. htaccess redirection

htaccess redirection

Scheduled Pinned Locked Moved Solved Surfer
surfer
8 Posts 4 Posters 2.2k Views 4 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.
  • yusfY Offline
    yusfY Offline
    yusf
    wrote on last edited by girish
    #1

    Is there .htaccess support in Surfer, or something similar?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      What is .htaccess? I've seen it in regards to wordpress sites

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #3

        There is no such support. .htaccess is quite powerful, which feature of it would you like to see?

        1 Reply Last reply
        0
        • yusfY Offline
          yusfY Offline
          yusf
          wrote on last edited by
          #4

          I'm looking to create an 301 redirect on a subdomain in order to retain the original URL while ensuring continuation of the service on its new domain. So Surfer is just the means to this end, really. Perhaps a URL management app would be the ultimate tool here. Or a layer of it in Cloudron itself?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            I think https://cloudron.io/documentation/apps/#setting-up-redirections is what you are looking for then?

            yusfY 1 Reply Last reply
            1
            • nebulonN nebulon

              I think https://cloudron.io/documentation/apps/#setting-up-redirections is what you are looking for then?

              yusfY Offline
              yusfY Offline
              yusf
              wrote on last edited by yusf
              #6

              @nebulon By the holy Docker whale, that is glorious!

              Although, what do I do if i want to strip www from URLs like in the documented example while at the same time redirect from this deprecated subdomain of mine?

              1 Reply Last reply
              0
              • M Offline
                M Offline
                msbt
                App Dev
                wrote on last edited by
                #7

                You fire up a lamp-app, enable the redirect and also create a .htaccess file like this:
                echo "redirect 301 / https://yournewdomain.com/" > /app/data/public/.htaccess
                This will create a redirect to your new domain.

                Happy Hosting & Web Development

                yusfY 1 Reply Last reply
                0
                • M msbt

                  You fire up a lamp-app, enable the redirect and also create a .htaccess file like this:
                  echo "redirect 301 / https://yournewdomain.com/" > /app/data/public/.htaccess
                  This will create a redirect to your new domain.

                  yusfY Offline
                  yusfY Offline
                  yusf
                  wrote on last edited by
                  #8

                  @msbt Ah, there we go! Quick and dirty solution, now that I know of the built-in redirections support but very flexible. Thanks!

                  1 Reply Last reply
                  0

                  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