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/