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]