dokku / dokku-redirect

A plugin for dokku that gives the ability to set simple redirects for an application
MIT License
107 stars 9 forks source link

Can't unset redirection #28

Closed kiuKisas closed 4 years ago

kiuKisas commented 4 years ago

When I try to remove a redirection, I got a sed error as following:

root@vps:/# dokku redirect my_website
SOURCE                                         DESTINATION                                            CODE
website.com/ms      website.com/product/ms      301
root@vps:/# dokku redirect:unset my_website website.com/ms
-----> Unsetting redirect for my_website...
sed: -e expression #1, char 28: unknown command: `m'
josegonzalez commented 4 years ago

From the docs:

This plugin only redirects one domain to another and does not handle complete URLs. If source domain is managed by dokku and is TLS enabled, then nginx configuration for https redirects will be handled automatically.

You'll probably need to manually remove the line.

kiuKisas commented 4 years ago

Ho I see, how can I manually remove ?

josegonzalez commented 4 years ago

There is a file called /home/dokku/APP_NAME/REDIRECTS - replace APP_NAME with your app's name.

kiuKisas commented 4 years ago

Thank's a lot, I close the issue :)