Add rewrite rule to handle short image viewing. NYF.
This commit is contained in:
parent
d7f770243c
commit
48cc71714f
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
Loading…
Reference in a new issue