diff --git a/main/.htaccess b/main/.htaccess index 80706d3..3c0eaf2 100644 --- a/main/.htaccess +++ b/main/.htaccess @@ -13,3 +13,7 @@ RewriteEngine on Options +FollowSymLinks -Indexes # Rewrite Rules + +# Serving Images +RewriteRule ^a/([0-9]+)$ imageserve.php?m=avatar&u=$1 +RewriteRule ^a/([0-9]+).png$ imageserve.php?m=avatar&u=$1 diff --git a/main/imageserve.php b/main/imageserve.php new file mode 100644 index 0000000..dbdfa21 --- /dev/null +++ b/main/imageserve.php @@ -0,0 +1,57 @@ +