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

View file

@ -2,6 +2,10 @@
RewriteEngine On RewriteEngine On
RewriteBase / 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. #Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller, #Additionally this will allow you to create a System.php controller,
#previously this would not have been possible. #previously this would not have been possible.
@ -29,5 +33,5 @@
# can be sent to index.php, and everything works as normal. # can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin # Submitted by: ElliotHaughin
ErrorDocument 404 /index.php #ErrorDocument 404 /index.php
</IfModule> </IfModule>