Skip to content

Commit 6a8bd17

Browse files
author
new2net
committed
The short links now point (internally) to the view.php instead of the image file directly
1 parent c8ec28e commit 6a8bd17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.htaccess

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
order deny,allow
22

3-
<Files ~ "^(\.htaccess|\.htpasswd|php.ini|.ini\/db.ini)$">
3+
<Files ~ "^\.(htaccess|htpasswd)$">
4+
deny from all
5+
</Files>
6+
7+
<Files ~ "^php.ini$">
48
deny from all
59
</Files>
610

711
Options -Indexes
812
Options +FollowSymlinks
913
RewriteEngine on
10-
RewriteRule ^([a-zA-Z0-9]{6}+)$ /uploads/$1.png
14+
RewriteRule ^([a-zA-Z0-9]{6}+)$ view.php?shortLink=$1.png
1115

0 commit comments

Comments
 (0)