diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-06 20:09:07 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-06 20:09:07 -0400 |
commit | b7641975a6d3cbd0ac4addd336827a88835e6e04 (patch) | |
tree | 7374e9d3a0db0fbbe6d369e4636aa35e8fc2871a /web/.htaccess | |
parent | Remove annoying alert. (diff) | |
download | PhotoFloat-b7641975a6d3cbd0ac4addd336827a88835e6e04.tar.xz PhotoFloat-b7641975a6d3cbd0ac4addd336827a88835e6e04.zip |
Redirect from zen photo urls.
Diffstat (limited to 'web/.htaccess')
-rw-r--r-- | web/.htaccess | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/web/.htaccess b/web/.htaccess index 4cd3d53..6bd5396 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -1,4 +1,12 @@ AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json -<FilesMatch "(Makefile)|(.*\.pyc)"> + +<FilesMatch "Makefile"> deny from all </FilesMatch> + +RewriteEngine On +RewriteBase / +RewriteRule ^redirect\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /redirect.php [L] |