Solved htaccess redirection
-
Is there
.htaccess
support in Surfer, or something similar? -
What is .htaccess? I've seen it in regards to wordpress sites
-
There is no such support.
.htaccess
is quite powerful, which feature of it would you like to see? -
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?
-
I think https://cloudron.io/documentation/apps/#setting-up-redirections is what you are looking for then?
-
@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?
-
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. -
@msbt Ah, there we go! Quick and dirty solution, now that I know of the built-in redirections support but very flexible. Thanks!