From 89009543659048c05554cfb6b915839c286e9bd4 Mon Sep 17 00:00:00 2001 From: Simon Hoskins Date: Sun, 4 Dec 2016 12:31:00 +0000 Subject: [PATCH] Remove now unused htaccess --- gulpfile.js | 8 +------- web/.htaccess | 19 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 web/.htaccess diff --git a/gulpfile.js b/gulpfile.js index 950063b..52b49e7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,7 +13,7 @@ var connect = require('gulp-connect'); gulp.task('default', ['build']); -gulp.task('build', ['bower','images', 'scripts', 'html', 'styles', 'htaccess']); +gulp.task('build', ['bower','images', 'scripts', 'html', 'styles']); gulp.task('bower', function() { return bower('./bower_components'); @@ -95,11 +95,6 @@ gulp.task('html', function () { .pipe(gulp.dest('dist')); }); -gulp.task('htaccess', function() { - return gulp.src('web/.htaccess') - .pipe(gulp.dest('dist')); -}); - gulp.task('serve', ['watch'], function() { connect.server({ root: 'dist', @@ -109,7 +104,6 @@ gulp.task('serve', ['watch'], function() { }); gulp.task('watch', ['build'], function() { - gulp.watch('web/.htaccess', ['htaccess']); gulp.watch('web/**/*.html', ['html']); gulp.watch('web/styles/*.scss', ['styles']); gulp.watch(['web/js/*.js', 'web/js/controllers/*.js'], ['scripts']); diff --git a/web/.htaccess b/web/.htaccess deleted file mode 100644 index 5b3d367..0000000 --- a/web/.htaccess +++ /dev/null @@ -1,19 +0,0 @@ -# html5 pushstate (history) support: - - RewriteEngine On - - # Redirect social media crawlers - RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|redditbot) - RewriteRule highlight/(\d*)$ http://api.sc2hl.com/static/highlight/$1 [P] - - RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|redditbot) - RewriteRule submitreplay http://api.sc2hl.com/static/submitreplay [P] - - RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|redditbot) - RewriteRule contest http://api.sc2hl.com/static/contest [P] - - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_URI} !index - RewriteRule (.*) index.html [L] -