From 943f6234440fa7c81ecdf960ae92be028dd1c1eb Mon Sep 17 00:00:00 2001 From: Alexandre Bourlier Date: Wed, 2 May 2018 09:04:10 +0200 Subject: [PATCH] .htaccess --- .htaccess | 8 ++++++++ deploy.sh | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..4dd8c31 --- /dev/null +++ b/.htaccess @@ -0,0 +1,8 @@ + + RewriteEngine On + RewriteBase / + RewriteRule ^index\.html$ - [L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule . /index.html [L] + diff --git a/deploy.sh b/deploy.sh index 4b044c0..292ab58 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,6 +4,7 @@ export SDN="http://hd-ldp.happy-dev.fr" php index.php > index.html grunt ssh happy-dev_alex@ssh-happy-dev.alwaysdata.net "cd hd-app; rm -Rf ./*; mkdir -p src/fonts; mkdir -p dist/css;" -scp -r index.html happy-dev_alex@ssh-happy-dev.alwaysdata.net:~/hd-app/ +scp index.html happy-dev_alex@ssh-happy-dev.alwaysdata.net:~/hd-app/ +scp .htaccess happy-dev_alex@ssh-happy-dev.alwaysdata.net:~/hd-app/ scp -r dist/css/ happy-dev_alex@ssh-happy-dev.alwaysdata.net:~/hd-app/dist/ scp -r src/fonts/ happy-dev_alex@ssh-happy-dev.alwaysdata.net:~/hd-app/src/