From 48cc71714f28bff4c236f99ebc921f9e0a08d33e Mon Sep 17 00:00:00 2001 From: atomaka Date: Sat, 5 Nov 2011 16:49:36 -0400 Subject: [PATCH] Add rewrite rule to handle short image viewing. NYF. --- .htaccess | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.htaccess b/.htaccess index f3251bc..1845b51 100644 --- a/.htaccess +++ b/.htaccess @@ -2,6 +2,10 @@ RewriteEngine On RewriteBase / + #For short image urls + RewriteRule ^([0-9]+)$ /$1/ [R] + RewriteRule ^([0-9]+)/$ /view/specific/$1/ [L] + #Removes access to the system folder by users. #Additionally this will allow you to create a System.php controller, #previously this would not have been possible. @@ -29,5 +33,5 @@ # can be sent to index.php, and everything works as normal. # Submitted by: ElliotHaughin - ErrorDocument 404 /index.php + #ErrorDocument 404 /index.php \ No newline at end of file