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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
Skins
  • Light
  • 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

Cloudron Forum

Apps | Demo | Docs | Install

htaccess redirection

Scheduled Pinned Locked Moved Solved Surfer
surfer
8 Posts 4 Posters 680 Views
    • 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
  • yusfY Offline
    yusfY Offline
    yusf
    replied to nebulon 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 Online
    M Online
    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.

    yusfY 1 Reply Last reply
    0
  • yusfY Offline
    yusfY Offline
    yusf
    replied to msbt 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

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.