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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved htaccess redirection

    Surfer
    surfer
    4
    8
    665
    Loading More Posts
    • 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.
    • yusf
      yusf last edited by girish

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

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User last edited by

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

        1 Reply Last reply Reply Quote 0
        • nebulon
          nebulon Staff last edited by

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

          1 Reply Last reply Reply Quote 0
          • yusf
            yusf last edited by

            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 Reply Quote 0
            • nebulon
              nebulon Staff last edited by

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

              yusf 1 Reply Last reply Reply Quote 1
              • yusf
                yusf @nebulon last edited by yusf

                @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 Reply Quote 0
                • M
                  msbt App Dev last edited by

                  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.

                  yusf 1 Reply Last reply Reply Quote 0
                  • yusf
                    yusf @msbt last edited by

                    @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 Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB