From b7641975a6d3cbd0ac4addd336827a88835e6e04 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 6 May 2011 20:09:07 -0400 Subject: [PATCH] Redirect from zen photo urls. --- web/.htaccess | 10 +++++++++- web/redirect.php | 31 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 web/redirect.php 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 - + + deny from all + +RewriteEngine On +RewriteBase / +RewriteRule ^redirect\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /redirect.php [L] diff --git a/web/redirect.php b/web/redirect.php new file mode 100644 index 0000000..d291fb6 --- /dev/null +++ b/web/redirect.php @@ -0,0 +1,31 @@ + \ No newline at end of file