From 01aca472833daebcd228ac96966ee8a92a487791 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Tue, 4 Apr 2023 08:43:52 +0200 Subject: [PATCH] Add .htaccess rule 2 --- Source/.htaccess | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/.htaccess b/Source/.htaccess index fa0885f..1e8779d 100644 --- a/Source/.htaccess +++ b/Source/.htaccess @@ -2,14 +2,13 @@ RewriteEngine on # Vérifier si le serveur est MAMP ou WAMP RewriteCond %{DOCUMENT_ROOT} /Applications/MAMP/htdocs/ -RewriteCond %{REQUEST_URI} !/$ RewriteRule .* - [E=APP_ROOT:/SAE4.01_FORMULAIRE/] RewriteCond %{DOCUMENT_ROOT} / RewriteRule .* - [E=APP_ROOT:] # Redirection des URLs -RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1/ [L,R=301] +RewriteRule ^(.*)$ %{ENV:APP_ROOT}index.php?page=goToForm [L] RewriteRule ^/$ %{ENV:APP_ROOT}index.php?page=goToForm [L] RewriteRule ^goToForm$ %{ENV:APP_ROOT}index.php?page=goToForm [L] RewriteRule ^submitForm$ %{ENV:APP_ROOT}index.php?page=submitForm [L]