YunoHost-Apps / my_webapp_ynh

Custom Web app with SFTP access
GNU General Public License v3.0
48 stars 39 forks source link

Gestion des redirections internes (HTACCESS) #54

Closed jc-fgt closed 3 years ago

jc-fgt commented 3 years ago

Bonjour, J'ai pour projet un petit site en React (Client side only) Je l'hébergeait avant sur un autre serveur et avait mis en place un .htaccess pour rediriger les routes incomprises vers l'index de l'application et ainsi éviter les 404. Est il possible de faire de même avec Custom Webapp ?

ericgaspar commented 3 years ago

YunoHost being based on NGINX you will have to convert the .htaccess into NGINX rules in you my_webapp NGINX config. This htaccess to NGINX converter can help you... https://winginx.com/en/htaccess

jc-fgt commented 3 years ago

ok thank you :+1: