YunoHost-Apps / redirect_ynh

Redirection app for YunoHost
GNU Affero General Public License v3.0
43 stars 21 forks source link

Add a $request_uri from the option #38

Open theRAGEhero opened 2 years ago

theRAGEhero commented 2 years ago

Hello, I wonder if it's possible to add a $request_uri option from the gui, in this way when the redirect app is updated we don't have to manually change the files again.

What happen, at the moment, is that I'm not updating the redirect app because of this.

As described in this post https://forum.yunohost.org/t/problems-with-the-redirect-app-on-wordpress/16611/2

Open your redirect conf file. To redirect [domain.com](http://domain.com/) to [www.domain.com](http://www.domain.com/)

sudo nano /etc/nginx/domain.com.d/redirect*

It has to be

location / {
  return 301 https://domain.com$request_uri;
}

The result would be redirect

Thank you!