1
0
Fork 0

Add rewrite rule to handle short image viewing. NYF.

This commit is contained in:
Andrew Tomaka 2011-11-05 16:49:36 -04:00
parent d7f770243c
commit 48cc71714f
1 changed files with 5 additions and 1 deletions

View File

@ -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
</IfModule>