Pastie: Add routes for getting pastes via uuid
authorBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 02:05:14 +0000 (22:05 -0400)
committerBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 02:05:14 +0000 (22:05 -0400)
pastie/.htaccess [new file with mode: 0644]

diff --git a/pastie/.htaccess b/pastie/.htaccess
new file mode 100644 (file)
index 0000000..9158a9c
--- /dev/null
@@ -0,0 +1,6 @@
+<IfModule mod_rewrite.c>
+    RewriteEngine On
+    RewriteCond   %{REQUEST_FILENAME}  !-d
+    RewriteCond   %{REQUEST_FILENAME}  !-f
+    RewriteRule   ^uuid/([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]+)$ view.php?uuid=$1 [QSA,L]
+</IfModule>